From: Michael W. Hudson Date: Tue, 5 Mar 2002 15:55:25 +0000 (+0000) Subject: backport loewis' checkin of X-Git-Tag: v2.2.1c1~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fffe6bbfad3bdd3d5d143272107380f628e0be4;p=thirdparty%2FPython%2Fcpython.git backport loewis' checkin of revision 1.24 of codecs.py 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.