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

Method _get_handler

Lib/argparse.py:1776–1783  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1774 return self._registry_get('action', action, action)
1775
1776 def _get_handler(self):
1777 # determine function from conflict handler string
1778 handler_func_name = '_handle_conflict_%s' % self.conflict_handler
1779 try:
1780 return getattr(self, handler_func_name)
1781 except AttributeError:
1782 msg = f'invalid conflict_resolution value: {self.conflict_handler!r}'
1783 raise ValueError(msg)
1784
1785 def _check_conflict(self, action):
1786

Callers 2

__init__Method · 0.95
_check_conflictMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected