mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Set default value for readlines.sizehint to None. Change needed for 2.2.1
as well.
This commit is contained in:
parent
7bb466a1a5
commit
b786e61b1c
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue