Skip to content
Next Next commit
Fix "c-analyzer.py capi --kinds" handling.
  • Loading branch information
ericsnowcurrently committed Dec 25, 2020
commit 528c2bc054d936590f2da70b95ed370b5444b84a
3 changes: 2 additions & 1 deletion Tools/c-analyzer/cpython/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def process_kinds(args, *, argv=None):
for raw in args.kinds or ():
for kind in raw.replace(',', ' ').strip().split():
if kind in _capi.KINDS:
kind.append(kind)
kinds.append(kind)
else:
parser.error(f'expected KIND to be one of {sorted(_capi.KINDS)}, got {kind!r}')
args.kinds = set(kinds)
Expand All @@ -264,6 +264,7 @@ def process_format(args, *, argv=None):

return [
process_levels,
process_kinds,
process_format,
process_progress,
]
Expand Down