mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Multifile.read(): Fix a broken conversion to string methods.
This closes SF bug #407777.
This commit is contained in:
parent
b2336529ef
commit
521c83dd80
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue