From a18af4e7a2091d11478754eb66ae387a85535763 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 21 Apr 2007 15:47:16 +0000 Subject: PEP 3114: rename .next() to .__next__() and add next() builtin. --- Lib/heapq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/heapq.py') diff --git a/Lib/heapq.py b/Lib/heapq.py index 01680651fc..6ee26d17f9 100644 --- a/Lib/heapq.py +++ b/Lib/heapq.py @@ -325,7 +325,7 @@ def merge(*iterables): h_append = h.append for itnum, it in enumerate(map(iter, iterables)): try: - next = it.next + next = it.__next__ h_append([next(), itnum, next]) except _StopIteration: pass -- cgit v1.2.1