MCPcopy Index your code
hub / github.com/python/cpython / process_format

Function process_format

Tools/c-analyzer/cpython/__main__.py:302–307  ·  view source on GitHub ↗
(args, *, argv=None)

Source from the content-addressed store, hash-verified

300 parser.add_argument('--summary', dest='format',
301 action='store_const', const='summary')
302 def process_format(args, *, argv=None):
303 orig = args.format
304 args.format = _capi.resolve_format(args.format)
305 if isinstance(args.format, str):
306 if args.format not in _capi._FORMATS:
307 parser.error(f'unsupported format {orig!r}')
308
309 parser.add_argument('--show-empty', dest='showempty', action='store_true')
310 parser.add_argument('--no-show-empty', dest='showempty', action='store_false')

Callers

nothing calls this directly

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…