Skip to content

Commit ece41db

Browse files
author
benjamin.peterson
committed
I believe the intention here was to avoid a global lookup
git-svn-id: http://svn.python.org/projects/python/trunk@69143 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 80d624b commit ece41db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/heapq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def nlargest(n, iterable):
195195
heapify(result)
196196
_heappushpop = heappushpop
197197
for elem in it:
198-
heappushpop(result, elem)
198+
_heappushpop(result, elem)
199199
result.sort(reverse=True)
200200
return result
201201

0 commit comments

Comments
 (0)