summaryrefslogtreecommitdiff
path: root/Lib/mailcap.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-14 23:47:14 +0000
committerTim Peters <tim.peters@gmail.com>2001-01-14 23:47:14 +0000
commit07e99cb77406e1bc84606f49b743e41b0de8a6d5 (patch)
treeb922cda3a970bffa797269fd550f8d8b032afe5b /Lib/mailcap.py
parent88869f9787cd4ceb2298e4b13980beb057687824 (diff)
downloadcpython-git-07e99cb77406e1bc84606f49b743e41b0de8a6d5.tar.gz
Whitespace normalization.
Diffstat (limited to 'Lib/mailcap.py')
-rw-r--r--Lib/mailcap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/mailcap.py b/Lib/mailcap.py
index 9756594cb8..2c3d07e25e 100644
--- a/Lib/mailcap.py
+++ b/Lib/mailcap.py
@@ -8,7 +8,7 @@ import string
def getcaps():
"""Return a dictionary containing the mailcap database.
-
+
The dictionary maps a MIME type (in all lowercase, e.g. 'text/plain')
to a list of dictionaries corresponding to mailcap entries. The list
collects all the entries for that MIME type from all available mailcap
@@ -137,7 +137,7 @@ def parsefield(line, i, n):
def findmatch(caps, MIMEtype, key='view', filename="/dev/null", plist=[]):
"""Find a match for a mailcap entry.
-
+
Return a tuple containing the command line, and the mailcap entry
used; (None, None) if no match is found. This may invoke the
'test' command of several matching entries before deciding which
@@ -145,7 +145,7 @@ def findmatch(caps, MIMEtype, key='view', filename="/dev/null", plist=[]):
"""
entries = lookup(caps, MIMEtype, key)
- # XXX This code should somehow check for the needsterminal flag.
+ # XXX This code should somehow check for the needsterminal flag.
for e in entries:
if e.has_key('test'):
test = subst(e['test'], filename, plist)