mirror of https://github.com/python/cpython
Multifile.read(): Fix a broken conversion to string methods.
This closes SF bug #407777.
This commit is contained in:
parent
b2336529ef
commit
521c83dd80
|
@ -117,7 +117,7 @@ class MultiFile:
|
|||
return list
|
||||
|
||||
def read(self): # Note: no size argument -- read until EOF only!
|
||||
return self.readlines().join('')
|
||||
return ''.join(self.readlines())
|
||||
|
||||
def next(self):
|
||||
while self.readline(): pass
|
||||
|
|
Loading…
Reference in New Issue