This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author strogon14
Recipients strogon14
Date 2008-09-11.12:22:10
SpamBayes Score 0.0022602298
Marked as misclassified No
Message-id <1221135745.13.0.140429283158.issue3834@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2008-09-11 12:22:25strogon14setrecipients: + strogon14
2008-09-11 12:22:25strogon14setmessageid: <1221135745.13.0.140429283158.issue3834@psf.upfronthosting.co.za>
2008-09-11 12:22:11strogon14linkissue3834 messages
2008-09-11 12:22:10strogon14create