mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
merge
This commit is contained in:
commit
468bcaffd6
3 changed files with 5 additions and 2 deletions
|
@ -164,4 +164,4 @@ class scheduler:
|
|||
# the actual order they would be retrieved.
|
||||
with self._lock:
|
||||
events = self._queue[:]
|
||||
return map(heapq.heappop, [events]*len(events))
|
||||
return list(map(heapq.heappop, [events]*len(events)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue