commit | fb921e2c0034e00fcc75fa23358cab4c48f6d450 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Jan 31 21:00:10 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Jan 31 21:00:10 2009 +0000 |
tree | 036875299b1e8960aa7f107f4c23c910b92343fa | |
parent | 48291369655bbe6d49f0098b342ecb623bce5f4c [diff] |
I believe the intention here was to avoid a global lookup
diff --git a/Lib/heapq.py b/Lib/heapq.py index 02c7944..0c5a914 100644 --- a/Lib/heapq.py +++ b/Lib/heapq.py
@@ -195,7 +195,7 @@ heapify(result) _heappushpop = heappushpop for elem in it: - heappushpop(result, elem) + _heappushpop(result, elem) result.sort(reverse=True) return result