]> granicus.if.org Git - python/commitdiff
Fix typo (already fixed in 2.7).
authorRaymond Hettinger <python@rcn.com>
Fri, 31 Jul 2009 20:21:08 +0000 (20:21 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 31 Jul 2009 20:21:08 +0000 (20:21 +0000)
Lib/heapq.py

index c13d6500b6e44d8759f186f64c7540ebc096a9c5..b36aabda6e438a3d1649223c40b81e2a60743dcb 100644 (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