diff options
author | Armin Rigo <arigo@tunes.org> | 2004-09-27 17:49:00 (GMT) |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2004-09-27 17:49:00 (GMT) |
commit | b562bc672bff106f1cbf2aad7770b654bfe374ec (patch) | |
tree | dcbe07cb694dcdf06241aaa84984fb5938bacb96 /Lib | |
parent | ffdb8bb99c4017152a9dca70669f9d6b9831d454 (diff) | |
download | cpython-b562bc672bff106f1cbf2aad7770b654bfe374ec.zip cpython-b562bc672bff106f1cbf2aad7770b654bfe374ec.tar.gz cpython-b562bc672bff106f1cbf2aad7770b654bfe374ec.tar.bz2 |
Trivial bug fix: deque == [] is not a good way to check if a deque is empty.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asynchat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py index 062ab3e..28b89a2 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] |