MCPcopy
hub / github.com/pex-tool/pex / _cleared_memory_cache

Method _cleared_memory_cache

pex/interpreter.py:850–859  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

848 @classmethod
849 @contextmanager
850 def _cleared_memory_cache(cls):
851 # type: () -> Iterator[None]
852 # Intended for test use.
853
854 _cache = cls._PYTHON_INTERPRETER_BY_NORMALIZED_PATH.copy()
855 cls._PYTHON_INTERPRETER_BY_NORMALIZED_PATH = {}
856 try:
857 yield
858 finally:
859 cls._PYTHON_INTERPRETER_BY_NORMALIZED_PATH = _cache
860
861 @classmethod
862 def _resolve_pyvenv_canonical_python_binary(

Calls 1

copyMethod · 0.45