[issue21138] mimetypes.MimeType UnicodeDecodeError

tanbro report at bugs.python.org
Thu Apr 3 04:40:28 CEST 2014


tanbro added the comment:

and in line 249, changes:

if isinstance(ctype, unicode):
    ctype = ctype.encode(default_encoding) # omit in 3.x!

----------

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


More information about the Python-bugs-list mailing list