Просмотр исходного кода

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
pazus 8 месяцев назад
Родитель
Сommit
afa2ad4006
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      build/scripts/compile_java.py

+ 1 - 1
build/scripts/compile_java.py

@@ -58,7 +58,7 @@ def main():
     for s in jsrcs:
         if s.endswith('.jsrc'):
             with contextlib.closing(tarfile.open(s, 'r')) as tf:
-                tf.extractall(sources_dir)
+                tf.extractall(path=sources_dir, filter='data')
 
     srcs = []
     for r, _, files in os.walk(sources_dir):