[issue2848] Remove mimetools usage from the stdlib

Humberto Diogenes report at bugs.python.org
Wed Jun 4 08:43:15 CEST 2008


Humberto Diogenes <humberto at digi.com.br> added the comment:

It's relatively easy to replace mimetools in most places: it's just a 
matter of changing mimetools.Message to email.message_from_file, but it 
gets a lot more complicated when there's inheritance involved.

The problem is that mimetools.Message is both a parser and a Message 
representation, and AFAIK there's no single class in ``email`` which does 
both -- the functionality is split between the Parser and Message classes.

Inheritance happens in two places: ``pydoc.Message`` and 
``http.client.HTTPMessage``, and I couldn't find a solution for those 
cases yet. Any help would be appreciated.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2848>
_______________________________________


More information about the Python-bugs-list mailing list