[issue2848] Remove mimetools usage from the stdlib
Raymond Hettinger
report at bugs.python.org
Wed Jun 4 09:37:48 CEST 2008
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
One idea: in http.client.HTTPMessage, inherit from email.Message,
modify the addheaders/addcontinue/readheaders methods to use the
methods in Message. Then, change the instantiation in HTTPResponse to
self.msg = email.parser.Parser(_class=HTTPMessage).parsestr(io.BytesIO
()).
Something similar may apply to pydoc. FYI, I believe there is a
pending discussion about whether to keep pydoc in Py3.0.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2848>
_______________________________________
More information about the Python-bugs-list
mailing list