commit | 945c17f5ec2b61d200be5114bc3ef37cd1bdd391 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Thu Apr 22 13:19:31 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Thu Apr 22 13:19:31 2010 +0000 |
tree | 8f03425caaf33e8131798582be3817afd378ac06 | |
parent | 6120ddb0aa6d77102f2e0eaba288b688ad49ddc0 [diff] [blame] |
Fix mailcap.py built-in test.
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 @@ 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()