ci(pre-commit): Apply automatic fixes
This commit is contained in:
parent
c8f23ec65d
commit
8f0f46fe54
1 changed files with 2 additions and 2 deletions
|
|
@ -243,11 +243,11 @@ def unpack(filename, destination, force_extract, checksum): # noqa: C901
|
||||||
if filename.endswith("tar.gz"):
|
if filename.endswith("tar.gz"):
|
||||||
if not cfile:
|
if not cfile:
|
||||||
cfile = tarfile.open(filename, "r:gz")
|
cfile = tarfile.open(filename, "r:gz")
|
||||||
cfile.extractall(destination, filter='tar')
|
cfile.extractall(destination, filter="tar")
|
||||||
elif filename.endswith("tar.xz"):
|
elif filename.endswith("tar.xz"):
|
||||||
if not cfile:
|
if not cfile:
|
||||||
cfile = tarfile.open(filename, "r:xz")
|
cfile = tarfile.open(filename, "r:xz")
|
||||||
cfile.extractall(destination, filter='tar')
|
cfile.extractall(destination, filter="tar")
|
||||||
elif filename.endswith("zip"):
|
elif filename.endswith("zip"):
|
||||||
if not cfile:
|
if not cfile:
|
||||||
cfile = zipfile.ZipFile(filename)
|
cfile = zipfile.ZipFile(filename)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue