[issue31867] Duplicated keys in MIME type_map with different values

Henk-Jaap Wagenaar report at bugs.python.org
Wed Oct 25 07:57:12 EDT 2017


Henk-Jaap Wagenaar <wagenaarhenkjaap at gmail.com> added the comment:

So for excel, 'application/excel' is not listed at http://www.iana.org/assignments/media-types as suggested by the comment at:
https://github.com/python/cpython/blob/master/Lib/mimetypes.py#L397
whereas 'applicaton/vnd.ms-excel' is listed. See also
https://stackoverflow.com/questions/974079/setting-mime-type-for-excel-document.

For cdf, Wolframalpha is using application/cdf it seems (without it being registered) whereas NetCDF suggests application/x-netcdf so that seems reasonable (and is the current value).

For context, these duplicates were introduced here:
https://github.com/python/cpython/commit/a3689fe78675c89d5979c0c5acdb1c173cc75ed6
and noted first here:
https://github.com/python/cpython/commit/107771a228ee73b4683242cb696e3024f93b74d5

----------
nosy: +Henk-Jaap Wagenaar
title: Duplicated keys, but with different values in dictionary literals -> Duplicated keys in MIME type_map with different values

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31867>
_______________________________________


More information about the Python-bugs-list mailing list