Fix typo (already fixed in 2.7).

This commit is contained in:
Raymond Hettinger 2009-07-31 20:21:08 +00:00
parent 272b749f55
commit 8299f3280c
1 changed files with 1 additions and 1 deletions

View 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