Skip to content

Docs: Fix the types_map value in the mimetypes example - #163090

Merged
StanFromIreland merged 2 commits into
python:mainfrom
thejesh23:docs-mimetypes-example
Dec 3, 2026
Merged

StanFromIreland merged 2 commits into
python:mainfrom
thejesh23:docs-mimetypes-example

Conversation

@thejesh23

Copy link
Copy Markdown
Contributor

The example shows mimetypes.types_map['.tgz'] as 'application/x-tar-gz', but .tgz is only in suffix_map, so this raises KeyError. Use .tar instead.

Checked on main, 3.13 and 3.14.

@thejesh23
thejesh23 requested a review from a team as a code owner December 3, 2026 13:32
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news awaiting review labels Dec 3, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Dec 3, 2026
@read-the-docs-community

read-the-docs-community Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

📖 2 files modified


Preview · build overview · cpython-previews · built Dec. 3, 2026, 1:59 p.m. UTC

@StanFromIreland
StanFromIreland merged commit 2424c1d into python:main Dec 3, 2026
31 checks passed
@StanFromIreland StanFromIreland added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Dec 3, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Dec 3, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @thejesh23 for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @thejesh23 for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @thejesh23 for the PR, and @StanFromIreland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-app

bedevere-app Bot commented Dec 3, 2026

Copy link
Copy Markdown

GH-163097 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Dec 3, 2026
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 3, 2026
…163090)

(cherry picked from commit 2424c1d)

Co-authored-by: Thejesh <thejesh36@gmail.com>
@bedevere-app

bedevere-app Bot commented Dec 3, 2026

Copy link
Copy Markdown

GH-163098 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Dec 3, 2026
@miss-islington-app

Copy link
Copy Markdown

Sorry @thejesh23 and @StanFromIreland, I had trouble completing the backport.

Please retry by removing and re-adding the "needs backport to 3.15" label.
If that does not work, please backport manually with cherry_picker, see the devguide for more information.

cherry_picker 2424c1d2bdc6056a94e1d8ff4e14a1aa7d496c15 3.15

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 3, 2026
…163090)

(cherry picked from commit 2424c1d)

Co-authored-by: Thejesh <thejesh36@gmail.com>
@miss-islington-app

Copy link
Copy Markdown

Sorry @thejesh23 and @StanFromIreland, I had trouble completing the backport.

Please retry by removing and re-adding the "needs backport to 3.14" label.
If that does not work, please backport manually with cherry_picker, see the devguide for more information.

cherry_picker 2424c1d2bdc6056a94e1d8ff4e14a1aa7d496c15 3.14

StanFromIreland pushed a commit that referenced this pull request Dec 3, 2026
…-163090) (#163098)

(cherry picked from commit 2424c1d)

Co-authored-by: Thejesh <thejesh36@gmail.com>
StanFromIreland pushed a commit that referenced this pull request Dec 3, 2026
…-163090) (#163097)

(cherry picked from commit 2424c1d)

Co-authored-by: Thejesh <thejesh36@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants