diff options
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r-- | Lib/asynchat.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py index 4bfab302a1..2c0bc3e902 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -262,11 +262,7 @@ class fifo: return self.list == [] def first (self): - it = iter(self.list) - try: - return it.next() - except StopIteration: - raise IndexError + return self.list.left() def push (self, data): self.list.append(data) |