Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
```
/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
  • Loading branch information
pazus committed Jul 12, 2024
1 parent d5ece3c commit b102a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/scripts/compile_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b102a1b

Please sign in to comment.