From b786e61b1cf6248998c0123fce01fc0909d8f5ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 5 Mar 2002 15:46:38 +0000 Subject: [PATCH] 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 df203c64da..293d5b7741 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.50.1