Skip to content

Commit 7a638e3

Browse files
authored
Merge pull request #137 from davidbrochart/tar
Fix DeprecationWarning
2 parents 3b0ac82 + c87f840 commit 7a638e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/pyjs/pre_js/load_pkg.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def _py_untar(tarball_path, target_dir):
4949
else:
5050
shared_libs.append(f"{target_dir}/{file.name}")
5151
52-
tar.extractall(target_dir)
52+
tar.extractall(target_dir, filter="fully_trusted")
5353
actual_shared_libs = []
5454
for file in shared_libs:
5555
if not check_wasm_magic_number(Path(file)):
@@ -108,7 +108,7 @@ def _py_unbz2(tarball_path, target_dir):
108108
prefix = Path(sys.prefix)
109109
try:
110110
with tarfile.open(tarball_path) as tar:
111-
tar.extractall(target_dir)
111+
tar.extractall(target_dir, filter="fully_trusted")
112112
113113
src = target / "site-packages"
114114
dest = prefix / "lib/python3.11/site-packages"

0 commit comments

Comments
 (0)