This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author The Compiler
Recipients The Compiler, Tom.Christie, ajaksu2, cvrebert, david.lindquist, elesbom, eric.araujo, evanj, ezio.melotti, jlgijsbers, kxroberto, lambacck, leos, martin.panter, ptarjan, sandro.tosi, sascha_silbe, wichert
Date 2021-01-04.20:21:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609791666.61.0.283313894323.issue1043134@roundup.psfhosted.org>
In-reply-to
Content
I think this has been fixed in Python 3.7+ via https://github.com/python/cpython/pull/14375 - at least for a couple of types.

Comparing Python 3.6 with the current state, the following changed (which can be used as an "override" dict before calling mimetypes.guess_extension):

    "application/manifest+json": ".webmanifest",  # not None
    "application/octet-stream": ".bin",  # not .a
    "application/postscript": ".ps",  # not .ai
    "application/vnd.ms-excel": ".xls",  # not .xlb
    "application/vnd.ms-powerpoint": ".ppt",  # not .pot
    "application/wasm": ".wasm",  # not None
    "application/x-hdf5": ".h5",  # not None
    "application/xml": ".xsl",  # not .rdf
    "audio/mpeg": ".mp3",  # not .mp2
    "image/jpeg": ".jpg",  # not .jpe
    "image/tiff": ".tiff",  # not .tif
    "text/html": ".html",  # not .htm
    "text/plain": ".txt",  # not .bat
    "video/mpeg": ".mpeg",  # not .m1v
History
Date User Action Args
2021-01-04 20:21:06The Compilersetrecipients: + The Compiler, jlgijsbers, kxroberto, ajaksu2, wichert, ezio.melotti, eric.araujo, lambacck, cvrebert, sascha_silbe, evanj, ptarjan, sandro.tosi, leos, elesbom, martin.panter, david.lindquist, Tom.Christie
2021-01-04 20:21:06The Compilersetmessageid: <1609791666.61.0.283313894323.issue1043134@roundup.psfhosted.org>
2021-01-04 20:21:06The Compilerlinkissue1043134 messages
2021-01-04 20:21:06The Compilercreate