Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.4k
Star
77.2k
Code
Issues
5k+
Pull requests
2.6k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
gh-75223: Reject undotted extensions in
mimetypes.add_type()
- #2895
#2895
Closed
OddBloke
wants to merge 16 commits into
python:main
python/cpython:main
from
OddBloke:fix-for-31040
OddBloke/cpython:fix-for-31040
Copy head branch name to clipboard
Conversation
Commits
16
(16)
Checks
Files changed
Closed
gh-75223: Reject undotted extensions in
mimetypes.add_type()
#2895
OddBloke
wants to merge 16 commits into
python:main
python/cpython:main
from
OddBloke:fix-for-31040
OddBloke/cpython:fix-for-31040
Copy head branch name to clipboard
Commits
Commits on Sep 10, 2019
Add a test for mimetypes.add_type
OddBloke
committed
2e6a0e5
View commit details
Copy full SHA for 2e6a0e5
Browse repository at this point
bpo-31040: Reject undotted extensions in mimetypes.add_type
Show description for 1485be9
OddBloke
committed
1485be9
View commit details
Copy full SHA for 1485be9
Browse repository at this point
Commits on Apr 15, 2023
Address the review
arhadthedev
authored
f0c1bf7
View commit details
Copy full SHA for f0c1bf7
Browse repository at this point
Merge branch 'main' into fix-for-31040
arhadthedev
authored
0d9bec2
View commit details
Copy full SHA for 0d9bec2
Browse repository at this point
Commits on Nov 6, 2024
Merge branch 'main' into fix-for-31040
hugovk
authored
2f23267
View commit details
Copy full SHA for 2f23267
Browse repository at this point
Commits on Nov 16, 2024
Assert output first, expected result second; link to method in news
hugovk
authored
ef5cf14
View commit details
Copy full SHA for ef5cf14
Browse repository at this point
Assert adding MIME type with empty extension emits no warning
hugovk
committed
bac8d5d
View commit details
Copy full SHA for bac8d5d
Browse repository at this point
Assert exception message when adding MIME type with undotted extension
hugovk
committed
e177398
View commit details
Copy full SHA for e177398
Browse repository at this point
Remove unused import
hugovk
committed
094f69b
View commit details
Copy full SHA for 094f69b
Browse repository at this point
Fix Sphinx reference; replace bpo with gh-issue
hugovk
committed
cbc5421
View commit details
Copy full SHA for cbc5421
Browse repository at this point
Replace with more useful test case
hugovk
committed
41d4e89
View commit details
Copy full SHA for 41d4e89
Browse repository at this point
Improve wording: avoid triple negative
hugovk
committed
50179cf
View commit details
Copy full SHA for 50179cf
Browse repository at this point
Fix news filename
hugovk
committed
352811b
View commit details
Copy full SHA for 352811b
Browse repository at this point
Commits on May 9, 2026
Merge branch 'main' into fix-for-31040
StanFromIreland
authored
b34278f
View commit details
Copy full SHA for b34278f
Browse repository at this point
Remove duplicate after merge, add to What's New and tidy up
StanFromIreland
committed
c1b6fec
View commit details
Copy full SHA for c1b6fec
Browse repository at this point
!fixup leftover line
StanFromIreland
committed
c491311
View commit details
Copy full SHA for c491311
Browse repository at this point
You can’t perform that action at this time.