Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.3k
(2.3k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
mailcap.py
on
3.12
User selector
All users
Datepicker
All time
Commit history
Commits on Nov 26, 2022
bpo-45975: Simplify some while-loops with walrus operator (GH-29347)
nickdrozd
authored
024ac54
View commit details
Copy full SHA for 024ac54
View code at this point
Browse repository at this point
Commits on Jun 3, 2022
gh-68966: Make mailcap refuse to match unsafe filenames/types/params (GH-91993)
encukou
authored
b9509ba
View commit details
Copy full SHA for b9509ba
View code at this point
Browse repository at this point
Commits on Apr 26, 2022
gh-68966: Deprecate the mailcap module (#91951)
vstinner
authored
80de027
View commit details
Copy full SHA for 80de027
View code at this point
Browse repository at this point
Commits on Apr 2, 2020
bpo-40094: mailcap.test() uses waitstatus_to_exitcode() (GH-19287)
Show description for d57cf55
vstinner
authored
d57cf55
View commit details
Copy full SHA for d57cf55
View code at this point
Browse repository at this point
Commits on Sep 10, 2016
#14977: Make mailcap respect the order of the lines in the mailcap file.
Show description for 347dc95
bitdancer
committed
347dc95
View commit details
Copy full SHA for 347dc95
View code at this point
Browse repository at this point
Commits on Jan 25, 2014
Issue #20331: Fixed possible FD leaks in various modules:
Show description for c0b0bb6
serhiy-storchaka
committed
c0b0bb6
View commit details
Copy full SHA for c0b0bb6
View code at this point
Browse repository at this point
Issue #20331: Fixed possible FD leaks in various modules:
Show description for 91b0bc2
serhiy-storchaka
committed
91b0bc2
View commit details
Copy full SHA for 91b0bc2
View code at this point
Browse repository at this point
Commits on Dec 25, 2012
Replace IOError with OSError (#16715)
asvetlov
committed
f7a17b4
View commit details
Copy full SHA for f7a17b4
View code at this point
Browse repository at this point
Commits on Aug 27, 2011
Fix #9923: mailcap now uses the OS path separator for the MAILCAP envvar. Not backported, since it could break cases where people worked around the old POSIX-specific behaviour on non-POSIX platforms.
ncoghlan
committed
2093730
View commit details
Copy full SHA for 2093730
View code at this point
Browse repository at this point
Commits on Apr 22, 2010
Issue #8496: make mailcap.lookup() always return a list, rather than an iterator.
Show description for 7062db8
pitrou
committed
7062db8
View commit details
Copy full SHA for 7062db8
View code at this point
Browse repository at this point
Fix mailcap.py built-in test.
pitrou
committed
945c17f
View commit details
Copy full SHA for 945c17f
View code at this point
Browse repository at this point
Commits on Feb 11, 2007
- PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;
Show description for cc2b016
gvanrossum
committed
cc2b016
View commit details
Copy full SHA for cc2b016
View code at this point
Browse repository at this point
Commits on Feb 9, 2007
Fix most trivially-findable print statements.
Show description for be19ed7
gvanrossum
committed
be19ed7
View commit details
Copy full SHA for be19ed7
View code at this point
Browse repository at this point
Commits on Jun 2, 2002
Replaced .keys() with dictionary iterators
rhettinger
committed
e0d4972
View commit details
Copy full SHA for e0d4972
View code at this point
Browse repository at this point
Commits on Jun 1, 2002
SF 563203. Replaced 'has_key()' with 'in'.
rhettinger
committed
54f0222
View commit details
Copy full SHA for 54f0222
View code at this point
Browse repository at this point
Commits on May 11, 2001
Opening a file for reading can raise IOError, so only catch that.
freddrake
committed
776d39e
View commit details
Copy full SHA for 776d39e
View code at this point
Browse repository at this point
Commits on Feb 9, 2001
String method conversion.
eric-s-raymond
committed
0c03cc2
View commit details
Copy full SHA for 0c03cc2
View code at this point
Browse repository at this point
Commits on Jan 24, 2001
a few more modules get __all__
Skip Montanaro
committed
17ab123
View commit details
Copy full SHA for 17ab123
View code at this point
Browse repository at this point
Commits on Jan 14, 2001
Whitespace normalization.
tim-one
committed
07e99cb
View commit details
Copy full SHA for 07e99cb
View code at this point
Browse repository at this point
Commits on Dec 12, 2000
Update the code to better reflect recommended style:
Show description for 8152d32
freddrake
committed
8152d32
View commit details
Copy full SHA for 8152d32
View code at this point
Browse repository at this point
Commits on Feb 4, 2000
More trivial comment -> docstring transformations by Ka-Ping Yee,
Show description for 54f22ed
gvanrossum
committed
54f22ed
View commit details
Copy full SHA for 54f22ed
View code at this point
Browse repository at this point
Commits on Mar 26, 1998
Mass check-in after untabifying all files that need it.
gvanrossum
committed
45e2fbc
View commit details
Copy full SHA for 45e2fbc
View code at this point
Browse repository at this point
Commits on Mar 25, 1997
Change by Andrew Kuchling (edited by Guido):
Show description for bfc3944
gvanrossum
committed
bfc3944
View commit details
Copy full SHA for bfc3944
View code at this point
Browse repository at this point
Commits on Aug 26, 1996
typo (cotinue -> continue)
gvanrossum
committed
cfd8935
View commit details
Copy full SHA for cfd8935
View code at this point
Browse repository at this point
Commits on Sep 30, 1995
Initial revision
gvanrossum
committed
8988fb2
View commit details
Copy full SHA for 8988fb2
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.