Message73016
The readline method in the InputWrapper class in wsgiref.validate does
not accept any arguments and therefore is not compatible with the
"file-like" interface, where the readline method accepts an optional
"size" argument.
This breaks code that wraps file objects with their own wrapper class
and tries to call the readline method of the wrapped object with a
"size" argument.
Current code::
def readline(self):
v = self.input.readline()
assert_(type(v) is type(""))
return v
Should be::
def readline(self, *args):
v = self.input.readline(*args)
assert_(type(v) is type(""))
return v |
|
Date |
User |
Action |
Args |
2008-09-11 12:22:25 | strogon14 | set | recipients:
+ strogon14 |
2008-09-11 12:22:25 | strogon14 | set | messageid: <1221135745.13.0.140429283158.issue3834@psf.upfronthosting.co.za> |
2008-09-11 12:22:11 | strogon14 | link | issue3834 messages |
2008-09-11 12:22:10 | strogon14 | create | |
|