summaryrefslogtreecommitdiffstats
path: root/Lib/Queue.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/Queue.py')
-rw-r--r--Lib/Queue.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/Queue.py b/Lib/Queue.py
index de7be72..cd035da 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)