From b562bc672bff106f1cbf2aad7770b654bfe374ec Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Mon, 27 Sep 2004 17:49:00 +0000 Subject: [PATCH] Trivial bug fix: deque == [] is not a good way to check if a deque is empty. --- Lib/asynchat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asynchat.py b/Lib/asynchat.py index 062ab3eb782..28b89a2bde4 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -259,7 +259,7 @@ class fifo: return len(self.list) def is_empty (self): - return self.list == [] + return not self.list def first (self): return self.list[0]