[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

Shashwat Anand report at bugs.python.org
Sat Jun 26 13:09:41 CEST 2010


Shashwat Anand <anand.shashwat at gmail.com> added the comment:

Can't reproduce.

16:36:36 l0nwlf-MBP:~$ python2.7
Python 2.7rc2+ (trunk:82148M, Jun 22 2010, 10:32:46) 
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mimetypes
>>> mimetypes.guess_extension('image/jpeg')
'.jpe'
>>> mimetypes.init()
>>> mimetypes.guess_extension('image/jpeg')
'.jpe'
>>> 

Results were same in python2.5, 2.6 too. I wonder whether this is machine specific or distro specific.

----------
nosy: +l0nwlf

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


More information about the Python-bugs-list mailing list