MCPcopy Index your code
hub / github.com/tanelpoder/0xtools / _get_handler

Method _get_handler

lib/0xtools/argparse.py:1448–1455  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1446 return self._registry_get('action', action, action)
1447
1448 def _get_handler(self):
1449 # determine function from conflict handler string
1450 handler_func_name = '_handle_conflict_%s' % self.conflict_handler
1451 try:
1452 return getattr(self, handler_func_name)
1453 except AttributeError:
1454 msg = _('invalid conflict_resolution value: %r')
1455 raise ValueError(msg % self.conflict_handler)
1456
1457 def _check_conflict(self, action):
1458

Callers 2

__init__Method · 0.95
_check_conflictMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected