[issue41791] mimetypes module does not recognize jp2 type

2020-09-17 Thread Radim Novotny

Radim Novotny  added the comment:

Hi Andrés,

tried again and the difference is between 3.7.4 and 3.7.5
The jp2 mimetype is read from /etc/apache2/mime.types (see knownfiles in 
mimetypes.py) so the mime type does not have to be in the mimetypes.py 
hardcoded, but in version 3.7.5 it stopped working. 

I think it's because of using _types_map_default instead of types_map in some 
places.

Since jp2 is an official mime type it should be added to the list but I also 
think we should try to identify the issue with _types_map_default.

Seems to be related to https://bugs.python.org/issue4963

I will have look if I can find out what was changed and why.

Cheers,
Radim

--

___
Python tracker 
<https://bugs.python.org/issue41791>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41791] mimetypes module does not recognize jp2 type

2020-09-14 Thread Radim Novotny


New submission from Radim Novotny :

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'

--
messages: 376927
nosy: naro
priority: normal
severity: normal
status: open
title: mimetypes module does not recognize jp2 type
type: behavior
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue41791>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6918] ctypes compilation error on SnowLeopard

2009-09-17 Thread Radim Novotny

Changes by Radim Novotny novotny.ra...@gmail.com:


--
nosy: +naro

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6918
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com