summaryrefslogtreecommitdiffstats
path: root/Lib/mailcap.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/mailcap.py')
-rw-r--r--Lib/mailcap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mailcap.py b/Lib/mailcap.py
index bc93026..4ae13d7 100644
--- a/Lib/mailcap.py
+++ b/Lib/mailcap.py
@@ -164,7 +164,7 @@ def lookup(caps, MIMEtype, key=None):
if MIMEtype in caps:
entries = entries + caps[MIMEtype]
if key is not None:
- entries = filter(lambda e, key=key: key in e, entries)
+ entries = [e for e in entries if key in e]
return entries
def subst(field, MIMEtype, filename, plist=[]):