Sat, 14 Aug 2010 18:31:22 -0300 url.py: removed 'file' inheritance in the httpsendfile class
Renato Cunha <renatoc@gmail.com> [Sat, 14 Aug 2010 18:31:22 -0300] rev 11880
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).
(0) -10000 -3000 -1000 -300 -100 -30 -10 -1 +1 +10 +30 +100 +300 +1000 +3000 +10000 +30000 tip