diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-03-05 15:46:38 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-03-05 15:46:38 +0000 |
commit | b786e61b1cf6248998c0123fce01fc0909d8f5ad (patch) | |
tree | d18fbf93f0a54bebd08ef5da1a907f09509a7f4d /Lib/codecs.py | |
parent | A fix & test for (diff) | |
download | cpython-b786e61b1cf6248998c0123fce01fc0909d8f5ad.tar.gz cpython-b786e61b1cf6248998c0123fce01fc0909d8f5ad.tar.bz2 cpython-b786e61b1cf6248998c0123fce01fc0909d8f5ad.zip |
Set default value for readlines.sizehint to None. Change needed for 2.2.1
as well.
Diffstat (limited to 'Lib/codecs.py')
-rw-r--r-- | Lib/codecs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py index df203c64dac..293d5b7741a 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. |