ci(pre-commit): Apply automatic fixes

This commit is contained in:
pre-commit-ci-lite[bot] 2024-12-12 16:24:21 +00:00 committed by GitHub
parent c8f23ec65d
commit 8f0f46fe54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)