Kaydet (Commit) 8299f328 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Fix typo (already fixed in 2.7).

üst 272b749f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment