Yap Sok Ann added the comment:

On Python 2.7, I need to add this to the original diff by Dave, in the same 
try-except block:

mimetype = mimetype.encode(default_encoding) # omit in 3.x!

----------
nosy: +sayap

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15207>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to