diff options
| author | Raymond Hettinger <python@rcn.com> | 2002-06-30 03:39:14 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2002-06-30 03:39:14 +0000 |
| commit | 137fff598982fa0591db444f6c6ea6525535825c (patch) | |
| tree | 5050743c008e2ebb503b6fad799c8010db8a17ea /Lib/Queue.py | |
| parent | 15c0183cfa154d41d63051e8cd419ad5d860eff6 (diff) | |
| download | cpython-137fff598982fa0591db444f6c6ea6525535825c.tar.gz | |
Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i)
Diffstat (limited to 'Lib/Queue.py')
| -rw-r--r-- | Lib/Queue.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/Queue.py b/Lib/Queue.py index de7be72d7a..cd035da14c 100644 --- a/Lib/Queue.py +++ b/Lib/Queue.py @@ -146,6 +146,4 @@ class Queue: # Get an item from the queue def _get(self): - item = self.queue[0] - del self.queue[0] - return item + return self.queue.pop(0) |
