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/shelve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/shelve.py') diff --git a/Lib/shelve.py b/Lib/shelve.py index d86718e141..697ae4f0f9 100644 --- a/Lib/shelve.py +++ b/Lib/shelve.py @@ -174,7 +174,7 @@ class BsdDbShelf(Shelf): return (key, Unpickler(f).load()) def next(self): - (key, value) = self.dict.next() + (key, value) = next(self.dict) f = StringIO(value) return (key, Unpickler(f).load()) -- cgit v1.2.1