mirror of https://github.com/python/cpython
Fix mailcap.py built-in test.
This commit is contained in:
parent
6120ddb0aa
commit
945c17f5ec
|
@ -239,14 +239,12 @@ def show(caps):
|
||||||
if not caps: caps = getcaps()
|
if not caps: caps = getcaps()
|
||||||
print("Mailcap entries:")
|
print("Mailcap entries:")
|
||||||
print()
|
print()
|
||||||
ckeys = caps.keys()
|
ckeys = sorted(caps)
|
||||||
ckeys.sort()
|
|
||||||
for type in ckeys:
|
for type in ckeys:
|
||||||
print(type)
|
print(type)
|
||||||
entries = caps[type]
|
entries = caps[type]
|
||||||
for e in entries:
|
for e in entries:
|
||||||
keys = e.keys()
|
keys = sorted(e)
|
||||||
keys.sort()
|
|
||||||
for k in keys:
|
for k in keys:
|
||||||
print(" %-15s" % k, e[k])
|
print(" %-15s" % k, e[k])
|
||||||
print()
|
print()
|
||||||
|
|
Loading…
Reference in New Issue