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

Function _temp_path

Lib/importlib/resources/_common.py:150–155  ·  view source on GitHub ↗

Wrap tempfile.TemporaryDirectory to return a pathlib object.

(dir: tempfile.TemporaryDirectory)

Source from the content-addressed store, hash-verified

148
149@contextlib.contextmanager
150def _temp_path(dir: tempfile.TemporaryDirectory):
151 """
152 Wrap tempfile.TemporaryDirectory to return a pathlib object.
153 """
154 with dir as result:
155 yield pathlib.Path(result)
156
157
158@contextlib.contextmanager

Callers 1

_temp_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…