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 | 08aec6472d6b841f4a5b5bda6008f34bf3fb96c8 (patch) | |
tree | d8950bf181895766b1b894b996fdf9c157cc884c | |
parent | f0a208b23d51e73cd8d2f079fd0c37c181534a51 (diff) | |
download | cpython-08aec6472d6b841f4a5b5bda6008f34bf3fb96c8.tar.gz |
Set default value for readlines.sizehint to None. Change needed for 2.2.1
as well.
-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 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. |