MCPcopy Index your code
hub / github.com/LabPy/lantz / _wrapper

Method _wrapper

lantz/foreign.py:221–231  ·  view source on GitHub ↗
(self, name, func, *args)

Source from the content-addressed store, hash-verified

219 return new_args, collect
220
221 def _wrapper(self, name, func, *args):
222 new_args, collect = self._preprocess_args(name, *args)
223
224 try:
225 ret = func(*new_args)
226 except Exception as e:
227 raise Exception('While calling {} with {} (was {}): {}'.format(name, new_args, args, e))
228
229 ret = self._return_handler(name, ret)
230
231 return self._postprocess(name, ret, collect)
232
233 def _postprocess(self, name, ret, collect):
234 if collect:

Callers

nothing calls this directly

Calls 4

_preprocess_argsMethod · 0.95
_return_handlerMethod · 0.95
_postprocessMethod · 0.95
funcFunction · 0.50

Tested by

no test coverage detected