[Python-checkins] r69143 - python/trunk/Lib/heapq.py
benjamin.peterson
python-checkins at python.org
Sat Jan 31 22:00:11 CET 2009
Author: benjamin.peterson
Date: Sat Jan 31 22:00:10 2009
New Revision: 69143
Log:
I believe the intention here was to avoid a global lookup
Modified:
python/trunk/Lib/heapq.py
Modified: python/trunk/Lib/heapq.py
==============================================================================
--- python/trunk/Lib/heapq.py (original)
+++ python/trunk/Lib/heapq.py Sat Jan 31 22:00:10 2009
@@ -195,7 +195,7 @@
heapify(result)
_heappushpop = heappushpop
for elem in it:
- heappushpop(result, elem)
+ _heappushpop(result, elem)
result.sort(reverse=True)
return result
More information about the Python-checkins
mailing list