diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-30 03:39:14 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-30 03:39:14 (GMT) |
commit | 46ac8eb3c899b498299a2f8fbcdd4ed3f32addba (patch) | |
tree | bcbe8646fceabec7bcdc4c365f6389fb537fdb68 /Lib/asynchat.py | |
parent | 78e057a32a92c3bfb464b27a02f4931c474769e8 (diff) | |
download | cpython-46ac8eb3c899b498299a2f8fbcdd4ed3f32addba.zip cpython-46ac8eb3c899b498299a2f8fbcdd4ed3f32addba.tar.gz cpython-46ac8eb3c899b498299a2f8fbcdd4ed3f32addba.tar.bz2 |
Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i)
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r-- | Lib/asynchat.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py index e1c97949b..1ba6b15 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) |