From fb921e2c0034e00fcc75fa23358cab4c48f6d450 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 31 Jan 2009 21:00:10 +0000 Subject: [PATCH] I believe the intention here was to avoid a global lookup --- Lib/heapq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1