mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Issue #18432: Fix unintended API change in the sched module
This commit is contained in:
parent
e6a17862e7
commit
889b92d3aa
3 changed files with 5 additions and 2 deletions
|
@ -165,4 +165,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