diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-22 13:19:31 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-22 13:19:31 (GMT) |
commit | 945c17f5ec2b61d200be5114bc3ef37cd1bdd391 (patch) | |
tree | 8f03425caaf33e8131798582be3817afd378ac06 | |
parent | 6120ddb0aa6d77102f2e0eaba288b688ad49ddc0 (diff) | |
download | cpython-945c17f5ec2b61d200be5114bc3ef37cd1bdd391.zip cpython-945c17f5ec2b61d200be5114bc3ef37cd1bdd391.tar.gz cpython-945c17f5ec2b61d200be5114bc3ef37cd1bdd391.tar.bz2 |
Fix mailcap.py built-in test.
-rw-r--r-- | Lib/mailcap.py | 6 |
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() |