Skip to content

Commit

Permalink
Fix Python deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rashad-signal authored Jun 26, 2024
1 parent c8317a7 commit 6e1f641
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/fetch-artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ def main() -> None:

print("extracting {} to {}".format(archive_file, args.output_dir), file=sys.stderr)
open_archive.seek(0)
tarfile.open(fileobj=open_archive).extractall(path=args.output_dir)
tar = tarfile.open(fileobj=open_archive)
# Trust the contents because we checked the hash
tar.extraction_filter = (lambda member, path: member)
tar.extractall(path=args.output_dir)
tar.close()


main()

0 comments on commit 6e1f641

Please sign in to comment.