summaryrefslogtreecommitdiff
path: root/Lib/asynchat.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r--Lib/asynchat.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py
index e1c97949b0..1ba6b15b91 100644
--- a/Lib/asynchat.py
+++ b/Lib/asynchat.py
@@ -269,9 +269,7 @@ class fifo:
def pop (self):
if self.list:
- result = self.list[0]
- del self.list[0]
- return (1, result)
+ return (1, self.list.pop(0))
else:
return (0, None)