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

Method _check_opt_strings

Lib/optparse.py:573–580  ·  view source on GitHub ↗
(self, opts)

Source from the content-addressed store, hash-verified

571 checker(self)
572
573 def _check_opt_strings(self, opts):
574 # Filter out None because early versions of Optik had exactly
575 # one short option and one long option, either of which
576 # could be None.
577 opts = [opt for opt in opts if opt]
578 if not opts:
579 raise TypeError("at least one option string must be supplied")
580 return opts
581
582 def _set_opt_strings(self, opts):
583 for opt in opts:

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected