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

Method __enter__

Lib/importlib/_bootstrap.py:419–421  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

417 self._lock = None
418
419 def __enter__(self):
420 self._lock = _get_module_lock(self._name)
421 self._lock.acquire()
422
423 def __exit__(self, *args, **kwargs):
424 self._lock.release()

Callers

nothing calls this directly

Calls 2

_get_module_lockFunction · 0.85
acquireMethod · 0.45

Tested by

no test coverage detected