summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-01-31 21:00:10 +0000
committerBenjamin Peterson <benjamin@python.org>2009-01-31 21:00:10 +0000
commitfb921e2c0034e00fcc75fa23358cab4c48f6d450 (patch)
tree036875299b1e8960aa7f107f4c23c910b92343fa
parent48291369655bbe6d49f0098b342ecb623bce5f4c (diff)
downloadcpython-git-fb921e2c0034e00fcc75fa23358cab4c48f6d450.tar.gz
I believe the intention here was to avoid a global lookup
-rw-r--r--Lib/heapq.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/heapq.py b/Lib/heapq.py
index 02c7944eed..0c5a914ae3 100644
--- a/Lib/heapq.py
+++ b/Lib/heapq.py
@@ -195,7 +195,7 @@ def nlargest(n, iterable):
heapify(result)
_heappushpop = heappushpop
for elem in it:
- heappushpop(result, elem)
+ _heappushpop(result, elem)
result.sort(reverse=True)
return result