➜

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.

作者 The Compiler
收信人 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
日期 2021-01-04.20:21:06
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1609791666.61.0.283313894323.issue1043134@roundup.psfhosted.org>
In-reply-to
内容
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
历史
日期 用户 动作 参数
2021-01-04 20:21:06The Compiler修改recipients: + 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 Compiler修改messageid: <1609791666.61.0.283313894323.issue1043134@roundup.psfhosted.org>
2021-01-04 20:21:06The Compiler链接issue1043134 messages
2021-01-04 20:21:06The Compiler创建