Issue #18432: Fix unintended API change in the sched module

This commit is contained in:
Raymond Hettinger 2013-07-13 22:42:09 -07:00
parent e6a17862e7
commit 889b92d3aa
3 changed files with 5 additions and 2 deletions

View file

@ -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)))