Skip to content

Commit

Permalink
ci(pre-commit): Apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Dec 12, 2024
1 parent c8f23ec commit 8f0f46f
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, filter='tar')
cfile.extractall(destination, filter="tar")
elif filename.endswith("tar.xz"):
if not cfile:
cfile = tarfile.open(filename, "r:xz")
cfile.extractall(destination, filter='tar')
cfile.extractall(destination, filter="tar")
elif filename.endswith("zip"):
if not cfile:
cfile = zipfile.ZipFile(filename)
Expand Down

0 comments on commit 8f0f46f

Please sign in to comment.