Repository navigation
Docs: Fix the types_map value in the mimetypes example - #163090
Conversation
|
📖 2 files modified Preview · build overview · cpython-previews · built Dec. 3, 2026, 1:59 p.m. UTC |
|
Thanks @thejesh23 for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
Thanks @thejesh23 for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
Thanks @thejesh23 for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
GH-163097 is a backport of this pull request to the 3.15 branch. |
|
GH-163098 is a backport of this pull request to the 3.14 branch. |
|
Sorry @thejesh23 and @StanFromIreland, I had trouble completing the backport. Please retry by removing and re-adding the "needs backport to 3.15" label. |
|
Sorry @thejesh23 and @StanFromIreland, I had trouble completing the backport. Please retry by removing and re-adding the "needs backport to 3.14" label. |
The example shows
mimetypes.types_map['.tgz']as'application/x-tar-gz', but.tgzis only insuffix_map, so this raisesKeyError. Use.tarinstead.Checked on main, 3.13 and 3.14.