From 9fffe6bbfad3bdd3d5d143272107380f628e0be4 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Tue, 5 Mar 2002 15:55:25 +0000 Subject: [PATCH] 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. --- Lib/codecs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.47.3