diff hgweb.cgi @ 11880:e3526634d5a3

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).
author Renato Cunha <renatoc@gmail.com>
date Sat, 14 Aug 2010 18:31:22 -0300
parents 227b9f13db13
children 85cba926cb59
line wrap: on
line diff