chiark / gitweb /
fshash.in: Forcibly reify output of `dict.keys'.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 1 Jun 2024 03:26:36 +0000 (04:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 9 Jun 2024 11:10:59 +0000 (12:10 +0100)
fshash.in

index 3d57292c9cf1f8d6ff856ebdb95ad03e04f7cb57..ad6ff58bf8c447a30d6b4bc645dc299ac22cb654 100644 (file)
--- a/fshash.in
+++ b/fshash.in
@@ -590,7 +590,7 @@ for short, long, props in [
   ('-c', '--cache', { 'dest': 'cache', 'metavar': 'FILE',
                       'help': 'use FILE as a cache for file hashes' }),
   ('-f', '--files', { 'dest': 'files', 'metavar': 'FORMAT',
   ('-c', '--cache', { 'dest': 'cache', 'metavar': 'FILE',
                       'help': 'use FILE as a cache for file hashes' }),
   ('-f', '--files', { 'dest': 'files', 'metavar': 'FORMAT',
-                      'type': 'choice', 'choices': FMTMAP.keys(),
+                      'type': 'choice', 'choices': list(FMTMAP.keys()),
                       'help': 'read files to report in the given FORMAT' }),
   ('-u', '--udiff', { 'action': 'store_true', 'dest': 'udiff',
                       'help': 'read diff from stdin, clear cache entries' }),
                       'help': 'read files to report in the given FORMAT' }),
   ('-u', '--udiff', { 'action': 'store_true', 'dest': 'udiff',
                       'help': 'read diff from stdin, clear cache entries' }),