summaryrefslogtreecommitdiff
path: root/Lib/sched.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-07-13 22:42:09 -0700
committerRaymond Hettinger <python@rcn.com>2013-07-13 22:42:09 -0700
commit889b92d3aa88b1d38d1f96907e0c02bea6d81777 (patch)
tree32046963e8426707bcf0715578fc3c28b36119ff /Lib/sched.py
parente6a17862e7f5739a669a98c2699a595a03fbe364 (diff)
downloadcpython-git-889b92d3aa88b1d38d1f96907e0c02bea6d81777.tar.gz
Issue #18432: Fix unintended API change in the sched module
Diffstat (limited to 'Lib/sched.py')
-rw-r--r--Lib/sched.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sched.py b/Lib/sched.py
index ccf8ce9074..b9a7ad1afa 100644
--- a/Lib/sched.py
+++ b/Lib/sched.py
@@ -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)))