mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i)
This commit is contained in:
parent
78e057a32a
commit
46ac8eb3c8
11 changed files with 19 additions and 42 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue