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 naro
Recipients naro
Date 2020-09-15.04:31:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600144307.97.0.591745605568.issue41791@roundup.psfhosted.org>
In-reply-to
Content
Even if jp2 is in the official list of types https://www.iana.org/assignments/media-types/media-types.xhtml it's not recognized by the MimeTypes.guess_type:

   >>> from mimetypes import MimeTypes
   >>> MimeTypes().guess_type('test.jp2')
   (None, None)

The same example works in Python 3.7 and returns 'image/jp2'
History
Date User Action Args
2020-09-15 04:31:48narosetrecipients: + naro
2020-09-15 04:31:47narosetmessageid: <1600144307.97.0.591745605568.issue41791@roundup.psfhosted.org>
2020-09-15 04:31:47narolinkissue41791 messages
2020-09-15 04:31:47narocreate