From: Benjamin Peterson Date: Sat, 31 Jan 2009 21:00:10 +0000 (+0000) Subject: I believe the intention here was to avoid a global lookup X-Git-Tag: v2.7a1~2155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb921e2c0034e00fcc75fa23358cab4c48f6d450;p=python I believe the intention here was to avoid a global lookup --- 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