Fix typo (already fixed in 2.7).
This commit is contained in:
parent
272b749f55
commit
8299f3280c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue