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
|
@ -252,7 +252,7 @@ class StreamReader(Codec):
|
||||||
return self.decode(line, self.errors)[0]
|
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
|
""" Read all lines available on the input stream
|
||||||
and return them as list of lines.
|
and return them as list of lines.
|
||||||
|
|
Loading…
Reference in New Issue