[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2022-01-15 Thread Irit Katriel
Change by Irit Katriel : -- resolution: remind -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2020-08-23 Thread Jens Troeger
Jens Troeger added the comment: @fbidu, oh I missed that, thank you! Shall I close the issue again, or what’s the common procedure in this case? -- ___ Python tracker ___

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2020-08-22 Thread Felipe Rodrigues
Felipe Rodrigues added the comment: @_savage, on the commit @xtreak referred, there's a note that "image/jpg" and some other non-standard mimetypes are only supported if `strict=False`[1] So, this: >>> mimetypes.guess_extension("image/jpg") Gives no return. But this works: >>>

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2020-08-20 Thread Jens Troeger
Jens Troeger added the comment: This is still not working: tried it on Python 3.8.5 and Python 3.7.8. >>> import mimetypes >>> mimetypes.guess_extension('image/jpg') >>> mimetypes.guess_extension('image/jpeg') '.jpg' Both should return the same value; I expected the mimetype 'image/jpg' to

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-31 Thread Ned Deily
Change by Ned Deily : -- resolution: -> out of date stage: -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this is fixed with 2a99fd911ebeecedbb250a05667cd46eca4735b9 which would be included in 3.7.5 since this missed 3.7.4RC1 . There is also a test for this at

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-31 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-31 Thread Dong-hee Na
Dong-hee Na added the comment: It works well on the master branch version but also the latest 3.7 branch I think that we can close this issue for `.jpe` issue if we don't have to support "image/jpg" case. Python 3.9.0a0 (heads/master:daa82d019c, Aug 31 2019, 23:37:00) [Clang 10.0.1

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-24 Thread Jens Troeger
Jens Troeger added the comment: Oops, forgot… >>> mimetypes.guess_extension("image/jpeg") # Expected ".jpg" or ".jpeg" as per referenced MDN. I personally would go with ".jpg" because that's the more common file name extension. -- ___ Python

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2019-08-24 Thread Jens Troeger
New submission from Jens Troeger : I think this one’s quite easy to reproduce: Python 3.7.4 (default, Jul 11 2019, 01:08:00) [Clang 10.0.1 (clang-1001.0.46.4)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import mimetypes >>>