Skip to content

Commit afa2ad4

Browse files
author
pazus
committed
Fix deprecation warning
``` /Users/pazus/arc/arcadia/build/scripts/compile_java.py:61: 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. tf.extractall(sources_dir) ``` 42ec528aee4d87622049495202c50de9b509926d
1 parent 559d052 commit afa2ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/scripts/compile_java.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def main():
5858
for s in jsrcs:
5959
if s.endswith('.jsrc'):
6060
with contextlib.closing(tarfile.open(s, 'r')) as tf:
61-
tf.extractall(sources_dir)
61+
tf.extractall(path=sources_dir, filter='data')
6262

6363
srcs = []
6464
for r, _, files in os.walk(sources_dir):

0 commit comments

Comments
 (0)