Skip to content

Commit 863eca4

Browse files
committed
avoid D:\a\NppFTP\NppFTP\build_3rdparty.py:205: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
tar.extractall(dir) , see https://docs.python.org/3.14/library/tarfile.html#tarfile-extraction-filter
1 parent b5f03c2 commit 863eca4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

build_3rdparty.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def download_tarball(url, sha256, dir, name):
202202
src = join_path(dir, sub)
203203
tgt = join_path(dir, name)
204204
rmdir(src)
205+
tar.extraction_filter = tarfile.data_filter
205206
tar.extractall(dir)
206207
rmdir(tgt)
207208
os.rename(src, tgt)

0 commit comments

Comments
 (0)