##// END OF EJS Templates
url.py: removed 'file' inheritance in the httpsendfile class...
url.py: removed 'file' inheritance in the httpsendfile class Since py3k doesn't have a "file" builtin and, consequently, doesn't support inheriting from it, this patch refactors the httpsendfile class to wrap the objects returned by the builtin "open" function while adding the necessary methods (__len__ for constructing the Content-Length header and read, write, close and seek for the file-like interface).
Renato Cunha -
r11880:e3526634 default
Show More