Message293249
And the underlying problem causing this:
$ python -c 'import mimetypes;print(mimetypes.guess_all_extensions("image/jpeg"))'
['.jpeg', '.jpg', '.jpe']
$ python -c 'import mimetypes;print(mimetypes.guess_all_extensions("image/jpeg"))'
['.jpg', '.jpe', '.jpeg']
$ python -c 'import mimetypes;print(mimetypes.guess_all_extensions("image/jpeg"))'
['.jpg', '.jpeg', '.jpe']
$ python -c 'import mimetypes;print(mimetypes.guess_all_extensions("image/jpeg"))'
['.jpe', '.jpg', '.jpeg']
$ python -c 'import mimetypes;print(mimetypes.guess_all_extensions("image/jpeg"))'
['.jpeg', '.jpg', '.jpe']
$
If the module can't know which extension is preferred, perhaps guess_extension should just be deprecated and the results of guess_all_extensions sorted on return?
At least that would give us some determinism to work with. |
|
| Date |
User |
Action |
Args |
| 2017-05-08 19:35:57 | dhess | set | recipients:
+ dhess, barry, terry.reedy, pitrou, wichert, a.badger, r.david.murray, siona, l0nwlf, wodny, sivert |
| 2017-05-08 19:35:57 | dhess | set | messageid: <[email protected]> |
| 2017-05-08 19:35:57 | dhess | link | issue4963 messages |
| 2017-05-08 19:35:57 | dhess | create | |
|