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/socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/socket.py') diff --git a/Lib/socket.py b/Lib/socket.py index 2222600721..3fe6ec5c53 100644 --- a/Lib/socket.py +++ b/Lib/socket.py @@ -409,7 +409,7 @@ class _fileobject(object): def __iter__(self): return self - def next(self): + def __next__(self): line = self.readline() if not line: raise StopIteration -- cgit v1.2.1