Skip to content

Commit

Permalink
fix(get): Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Dec 11, 2024
1 parent d072cdd commit 150e51d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ def unpack(filename, destination, force_extract, checksum): # noqa: C901
if filename.endswith("tar.gz"):
if not cfile:
cfile = tarfile.open(filename, "r:gz")
cfile.extractall(destination)
cfile.extractall(destination, filter='tar')
elif filename.endswith("tar.xz"):
if not cfile:
cfile = tarfile.open(filename, "r:xz")
cfile.extractall(destination)
cfile.extractall(destination, filter='tar')
elif filename.endswith("zip"):
if not cfile:
cfile = zipfile.ZipFile(filename)
Expand Down

0 comments on commit 150e51d

Please sign in to comment.