Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 038d264 commit bdefa0bCopy full SHA for bdefa0b
1 file changed
Lib/StringIO.py
@@ -45,6 +45,9 @@ def __init__(self, buf = ''):
45
self.closed = 0
46
self.softspace = 0
47
48
+ def __iter__(self):
49
+ return iter(self.readline, '')
50
+
51
def close(self):
52
if not self.closed:
53
self.closed = 1
0 commit comments