[issue43544] mimetype default list make a wrong guess for illustrator file

2021-03-18 Thread Guénaël Muller
New submission from Guénaël Muller : mimetypes lib consider illustrator file ('.ai') as 'application/postscript' type. This is correct... but also wrong. Old illustrator file (illustrator 9) are real postscript file but modern one are technically pdf. So guessing .ai a

[issue39441] mimetypes.guess_extension unable to get non-lowercase mimetype

2020-01-24 Thread Guénaël Muller
New submission from Guénaël Muller : mimetypes.guess_extension and mimetypes.guess_all_extensions doesn't work correctly with non-lowercase mimetype. >>> import mimetypes >>> mimetypes.guess_type('file.pptm') ('application/vnd.ms-powerpoi