From: Antoine Pitrou Date: Thu, 22 Apr 2010 13:19:31 +0000 (+0000) Subject: Fix mailcap.py built-in test. X-Git-Tag: v3.2a1~1042 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=945c17f5ec2b61d200be5114bc3ef37cd1bdd391;p=python Fix mailcap.py built-in test. --- diff --git a/Lib/mailcap.py b/Lib/mailcap.py index 086f05c581..bc93026dcd 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()