MCPcopy Create free account
hub / github.com/apache/madlib / _get_handler

Method _get_handler

src/madpack/argparse.py:1447–1454  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 2

__init__Method · 0.95
_check_conflictMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected