summaryrefslogtreecommitdiffstats
path: root/Lib/mailcap.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-04-22 13:19:31 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-04-22 13:19:31 (GMT)
commit945c17f5ec2b61d200be5114bc3ef37cd1bdd391 (patch)
tree8f03425caaf33e8131798582be3817afd378ac06 /Lib/mailcap.py
parent6120ddb0aa6d77102f2e0eaba288b688ad49ddc0 (diff)
downloadcpython-945c17f5ec2b61d200be5114bc3ef37cd1bdd391.zip
cpython-945c17f5ec2b61d200be5114bc3ef37cd1bdd391.tar.gz
cpython-945c17f5ec2b61d200be5114bc3ef37cd1bdd391.tar.bz2
Fix mailcap.py built-in test.
Diffstat (limited to 'Lib/mailcap.py')
-rw-r--r--Lib/mailcap.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/mailcap.py b/Lib/mailcap.py
index 086f05c..bc93026 100644
--- a/Lib/mailcap.py
+++ b/Lib/mailcap.py
@@ -239,14 +239,12 @@ def show(caps):
if not caps: caps = getcaps()
print("Mailcap entries:")
print()
- ckeys = caps.keys()
- ckeys.sort()
+ ckeys = sorted(caps)
for type in ckeys:
print(type)
entries = caps[type]
for e in entries:
- keys = e.keys()
- keys.sort()
+ keys = sorted(e)
for k in keys:
print(" %-15s" % k, e[k])
print()