summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/asynchat.py2
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]