diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-01-31 21:00:10 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-01-31 21:00:10 +0000 |
commit | fb921e2c0034e00fcc75fa23358cab4c48f6d450 (patch) | |
tree | 036875299b1e8960aa7f107f4c23c910b92343fa | |
parent | 48291369655bbe6d49f0098b342ecb623bce5f4c (diff) | |
download | cpython-git-fb921e2c0034e00fcc75fa23358cab4c48f6d450.tar.gz |
I believe the intention here was to avoid a global lookup
-rw-r--r-- | Lib/heapq.py | 2 |
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 |