]> granicus.if.org Git - python/commitdiff
I believe the intention here was to avoid a global lookup
authorBenjamin Peterson <benjamin@python.org>
Sat, 31 Jan 2009 21:00:10 +0000 (21:00 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 31 Jan 2009 21:00:10 +0000 (21:00 +0000)
Lib/heapq.py

index 02c7944eedd5e3d55da46944d667601772d9fb52..0c5a914ae33940b7f7af6d1b075fbbff7ab0469b 100644 (file)
@@ -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