This commit is contained in:
Raymond Hettinger 2013-07-13 22:48:49 -07:00
commit 468bcaffd6
3 changed files with 5 additions and 2 deletions

View file

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