Mercurial > hg
comparison doc/Makefile @ 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 | a0c5f531daab |
children | 99e8dd56e244 |
comparison
equal
deleted
inserted
replaced
11879:4e804302d30c | 11880:e3526634d5a3 |
---|