-
-
Notifications
You must be signed in to change notification settings - Fork 36.7k
Add missing text/rtf to mimetypes #97901
Copy link
Copy link
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Feature or enhancement
As of Python 3.10, the types map does not contain an entry for the valid mime type of
text/rtf. It only contains aapplication/rtfentry for non standard types. The missingtext/rtfmapping should be added as this is a valid mime type. For example this file type is guessed by thefilecommand (e.g. version 5.04; see libmagic1). My temporary workaround is to add the mapping manually:I would dare to add it to the list of standard types, but to be consistend with the other
rtfmapping I'd add it to the non standard (strict=False) list.Pitch
The feature is implemented in a pull request pointing to this issue. I simply adds one one line with the mapping. Other python lovers could take advantage of this functional mapping of a valid mime type to an extension.
Linked PRs