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

Method _create_cb_wrapper

Lib/contextlib.py:490–493  ·  view source on GitHub ↗
(callback, /, *args, **kwds)

Source from the content-addressed store, hash-verified

488
489 @staticmethod
490 def _create_cb_wrapper(callback, /, *args, **kwds):
491 def _exit_wrapper(exc_type, exc, tb):
492 callback(*args, **kwds)
493 return _exit_wrapper
494
495 def __init__(self):
496 self._exit_callbacks = deque()

Callers 1

callbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected