Kaydet (Commit) 9fffe6bb authored tarafından Michael W. Hudson's avatar Michael W. Hudson

backport loewis' checkin of

    revision 1.24 of codecs.py

Set default value for readlines.sizehint to None. Change needed for 2.2.1
as well.
üst 325573ce
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment