]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Multifile.read(): Fix a broken conversion to string methods.
authorFred Drake <fdrake@acm.org>
Mon, 12 Mar 2001 02:56:15 +0000 (02:56 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 12 Mar 2001 02:56:15 +0000 (02:56 +0000)
This closes SF bug #407777.

Lib/multifile.py

index 60a4303c14bf14eedf6dab7795278541fd204b85..c3c468a0e6787cbe6d16b1a48f3d4da923f70e79 100644 (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