Fix mailcap.py built-in test.

This commit is contained in:
Antoine Pitrou 2010-04-22 13:19:31 +00:00
parent 6120ddb0aa
commit 945c17f5ec
1 changed files with 2 additions and 4 deletions

View File

@ -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()