mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -633,8 +633,7 @@ def _test():
|
|||
while not self.queue:
|
||||
self._note("get(): queue empty")
|
||||
self.rc.wait()
|
||||
item = self.queue[0]
|
||||
del self.queue[0]
|
||||
item = self.queue.pop(0)
|
||||
self._note("get(): got %s, %d left", item, len(self.queue))
|
||||
self.wc.notify()
|
||||
self.mon.release()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue