Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6120ddb commit 945c17fCopy full SHA for 945c17f
1 file changed
Lib/mailcap.py
@@ -239,14 +239,12 @@ def show(caps):
239
if not caps: caps = getcaps()
240
print("Mailcap entries:")
241
print()
242
- ckeys = caps.keys()
243
- ckeys.sort()
+ ckeys = sorted(caps)
244
for type in ckeys:
245
print(type)
246
entries = caps[type]
247
for e in entries:
248
- keys = e.keys()
249
- keys.sort()
+ keys = sorted(e)
250
for k in keys:
251
print(" %-15s" % k, e[k])
252
0 commit comments