]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport loewis' checkin of
authorMichael W. Hudson <mwh@python.net>
Tue, 5 Mar 2002 15:55:25 +0000 (15:55 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 5 Mar 2002 15:55:25 +0000 (15:55 +0000)
    revision 1.24 of codecs.py

Set default value for readlines.sizehint to None. Change needed for 2.2.1
as well.

Lib/codecs.py

index df203c64dacd1792e9c554e6ec6cd2e30140d1d5..293d5b7741a32f1cb7d2e11f8bfaca8a16333325 100644 (file)
@@ -252,7 +252,7 @@ class StreamReader(Codec):
         return self.decode(line, self.errors)[0]
 
 
-    def readlines(self, sizehint=0):
+    def readlines(self, sizehint=None):
 
         """ Read all lines available on the input stream
             and return them as list of lines.