Multifile.read(): Fix a broken conversion to string methods.

This closes SF bug #407777.
This commit is contained in:
Fred Drake 2001-03-12 02:56:15 +00:00
parent b2336529ef
commit 521c83dd80
1 changed files with 1 additions and 1 deletions

View File

@ -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