summaryrefslogtreecommitdiffstats
path: root/Lib/mailcap.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20331: Fixed possible FD leaks in various modules:Serhiy Storchaka2014-01-251-2/+2
|\ | | | | | | http.server, imghdr, mailcap, mimetypes, xml.etree.
| * Issue #20331: Fixed possible FD leaks in various modules:Serhiy Storchaka2014-01-251-2/+2
| | | | | | | | http.server, imghdr, mailcap, mimetypes, xml.etree.
* | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-1/+1
|/
* Fix #9923: mailcap now uses the OS path separator for the MAILCAP envvar. ↵Nick Coghlan2011-08-271-3/+3
| | | | Not backported, since it could break cases where people worked around the old POSIX-specific behaviour on non-POSIX platforms.
* Issue #8496: make mailcap.lookup() always return a list, rather than an ↵Antoine Pitrou2010-04-221-1/+1
| | | | | | iterator. Patch by Gregory Nofi.
* Fix mailcap.py built-in test.Antoine Pitrou2010-04-221-4/+2
|
* - 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