From: Martin v. Löwis Date: Tue, 5 Mar 2002 15:46:38 +0000 (+0000) Subject: Set default value for readlines.sizehint to None. Change needed for 2.2.1 X-Git-Tag: v2.3c1~6573 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b786e61b1cf6248998c0123fce01fc0909d8f5ad;p=thirdparty%2FPython%2Fcpython.git Set default value for readlines.sizehint to None. Change needed for 2.2.1 as well. --- diff --git a/Lib/codecs.py b/Lib/codecs.py index df203c64dacd..293d5b7741a3 100644 --- a/Lib/codecs.py +++ b/Lib/codecs.py @@ -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.