MCPcopy Create free account
hub / github.com/openai/openai-agents-python / _safe_extract

Function _safe_extract

tests/sandbox/test_tar_utils.py:69–71  ·  view source on GitHub ↗
(raw: bytes, root: Path)

Source from the content-addressed store, hash-verified

67
68
69def _safe_extract(raw: bytes, root: Path) -> None:
70 with tarfile.open(fileobj=io.BytesIO(raw), mode="r:*") as tar:
71 safe_extract_tarfile(tar, root=root)
72
73
74def test_safe_extract_tarfile_preserves_venv_style_symlinks(tmp_path: Path) -> None:

Calls 2

safe_extract_tarfileFunction · 0.90
openMethod · 0.80

Tested by

no test coverage detected