This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author wichert
Recipients barry, l0nwlf, pitrou, r.david.murray, siona, terry.reedy, wichert
Date 2014-03-27.12:40:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395924007.6.0.997591105762.issue4963@psf.upfronthosting.co.za>
In-reply-to
Content
I can reproduce this on Both OSX 10.9 and Ubuntu 12.04:

>>> import mimetypes
>>> mimetypes.guess_extension('image/jpeg')
'.jpe'
>>> mimetypes.init()
>>> mimetypes.guess_extension('image/jpeg')
'.jpeg'

The same thing happens for Python 3.4:

Python 3.4.0rc3 (default, Mar 13 2014, 10:48:59) 
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mimetypes
>>> mimetypes.guess_all_extensions('image/jpeg')
['.jpg', '.jpeg', '.jpe']
>>> mimetypes.init()
>>> mimetypes.guess_all_extensions('image/jpeg')
['.jpeg', '.jpe', '.jpg']

This also looks related to Issue1043134
History
Date User Action Args
2014-03-27 12:40:07wichertsetrecipients: + wichert, barry, terry.reedy, pitrou, r.david.murray, siona, l0nwlf
2014-03-27 12:40:07wichertsetmessageid: <1395924007.6.0.997591105762.issue4963@psf.upfronthosting.co.za>
2014-03-27 12:40:07wichertlinkissue4963 messages
2014-03-27 12:40:07wichertcreate