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

Method _share_option_mappings

Lib/optparse.py:930–935  ·  view source on GitHub ↗
(self, parser)

Source from the content-addressed store, hash-verified

928
929
930 def _share_option_mappings(self, parser):
931 # For use by OptionGroup constructor -- use shared option
932 # mappings from the OptionParser that owns this OptionGroup.
933 self._short_opt = parser._short_opt
934 self._long_opt = parser._long_opt
935 self.defaults = parser.defaults
936
937 def set_conflict_handler(self, handler):
938 if handler not in ("error", "resolve"):

Callers 1

_create_option_listMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected