Commit 0b53f811 authored by Ralf Schmitt's avatar Ralf Schmitt

fix pywsgi.Input.__iter__

--HG--
extra : transplant_source : %A1%04%9Fa%98Xy%ABR%B4%B4Zg%E4%60%3E%92%1A%81%D6
parent 154385a0
......@@ -128,7 +128,12 @@ class Input(object):
return self._do_read(self.rfile.readlines, hint)
def __iter__(self):
return iter(self.read())
while 1:
line = self.readline()
if not line:
break
yield line
class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
......
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