Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 945c17f

Browse files
committed
Fix mailcap.py built-in test.
1 parent 6120ddb commit 945c17f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Lib/mailcap.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,12 @@ def show(caps):
239239
if not caps: caps = getcaps()
240240
print("Mailcap entries:")
241241
print()
242-
ckeys = caps.keys()
243-
ckeys.sort()
242+
ckeys = sorted(caps)
244243
for type in ckeys:
245244
print(type)
246245
entries = caps[type]
247246
for e in entries:
248-
keys = e.keys()
249-
keys.sort()
247+
keys = sorted(e)
250248
for k in keys:
251249
print(" %-15s" % k, e[k])
252250
print()

0 commit comments

Comments
 (0)