commit | b786e61b1cf6248998c0123fce01fc0909d8f5ad | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Tue Mar 05 15:46:38 2002 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Tue Mar 05 15:46:38 2002 +0000 |
tree | d18fbf93f0a54bebd08ef5da1a907f09509a7f4d | |
parent | 7bb466a1a534e73de11bb044f6910aaf86d78473 [diff] |
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 df203c6..293d5b7 100644 --- a/Lib/codecs.py +++ b/Lib/codecs.py
@@ -252,7 +252,7 @@ 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.