[issue8898] The email package should defer to the codecs module for all aliases

R. David Murray report at bugs.python.org
Fri May 27 15:59:13 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

Your new file isn't in the patch.  I'm imagining it is a table and a couple methods, so I think perhaps putting it either in charset or in utils would be better than creating a new file.

As for testing it, what I'd love to see is a test that downloads the current IANA table (there are routines in test.support for doing this in a way that respects the test suite's 'resources' settings), pulls out the preferred MIME aliases, and makes sure that all of them are mapped to some canonical Python codec.  Then you can invert that and make sure all of the results returned by that test map back to the correct MIME alias.

----------

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


More information about the Python-bugs-list mailing list