summaryrefslogtreecommitdiff
path: root/Lib/mailcap.py
Commit message (Collapse)AuthorAgeFilesLines
* #14977: Make mailcap respect the order of the lines in the mailcap file.R David Murray2016-09-091-3/+25
| | | | | This is required by RFC 1542, so despite the subtle behavior change we are treating it as a bug. Patch by Michael Lazar.
* Issue #20331: Fixed possible FD leaks in various modules:Serhiy Storchaka2014-01-251-1/+1
|\ | | | | | | http.server, imghdr, mailcap, mimetypes, xml.etree.
| * Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-1/+1
| |
* | Issue #20331: Fixed possible FD leaks in various modules:Serhiy Storchaka2014-01-251-2/+2
|/ | | | http.server, imghdr, mailcap, mimetypes, xml.etree.
* Fix #9923: mailcap now uses the OS path separator for the MAILCAP envvar. ↵Nick Coghlan2011-08-281-3/+3
| | | | Not backported, since it could break cases where people worked around the old POSIX-specific behaviour on non-POSIX platforms.
* Merged revisions 80368-80369 via svnmerge fromAntoine Pitrou2010-04-221-5/+3
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r80368 | antoine.pitrou | 2010-04-22 15:19:31 +0200 (jeu., 22 avril 2010) | 3 lines Fix mailcap.py built-in test. ........ r80369 | antoine.pitrou | 2010-04-22 15:30:10 +0200 (jeu., 22 avril 2010) | 5 lines Issue #8496: make mailcap.lookup() always return a list, rather than an iterator. Patch by Gregory Nofi. ........
* - PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;Guido van Rossum2007-02-111-1/+1
| | | | | | | | | | and .keys(), .items(), .values() return dict views. The dict views aren't fully functional yet; in particular, they can't be compared to sets yet. but they are useful as "iterator wells". There are still 27 failing unit tests; I expect that many of these have fairly trivial fixes, but there are so many, I could use help.
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-12/+12
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* Replaced .keys() with dictionary iteratorsRaymond Hettinger2002-06-021-3/+3
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-9/+9
|
* Opening a file for reading can raise IOError, so only catch that.Fred Drake2001-05-111-1/+1
|
* String method conversion.Eric S. Raymond2001-02-091-13/+12
|
* a few more modules get __all__Skip Montanaro2001-01-241-0/+1
|
* Whitespace normalization.Tim Peters2001-01-141-3/+3
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-2/+2
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-2/+19
| | | | | | | | | | | | | | | | | | who writes: Here is batch 2, as a big collection of CVS context diffs. Along with moving comments into docstrings, i've added a couple of missing docstrings and attempted to make sure more module docstrings begin with a one-line summary. I did not add docstrings to the methods in profile.py for fear of upsetting any careful optimizations there, though i did move class documentation into class docstrings. The convention i'm using is to leave credits/version/copyright type of stuff in # comments, and move the rest of the descriptive stuff about module usage into module docstrings. Hope this is okay.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-128/+128
|
* Change by Andrew Kuchling (edited by Guido):Guido van Rossum1997-03-251-17/+32
| | | | | | Removed unused import tempfile. Added some docstrings.
* typo (cotinue -> continue)Guido van Rossum1996-08-261-1/+1
|
* Initial revisionGuido van Rossum1995-09-301-0/+223