Commit b0854e8a authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: make readline() accept optional 'size' argument. Patch Ralf Schmitt

This improves compatibility with WebOb.
parent 92f8663e
......@@ -121,7 +121,7 @@ class Input(object):
return self._chunked_read(self.rfile, length)
return self._do_read(self.rfile.read, length)
def readline(self):
def readline(self, size=None):
return self._do_read(self.rfile.readline)
def readlines(self, hint=None):
......
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