Restored code.

This commit is contained in:
NissimHadar 2019-04-23 15:59:03 -07:00
parent f4b1aedbae
commit e755e717b1

View file

@ -118,6 +118,6 @@ def downloadAndExtract(url, destPath, hash=None, hasher=hashlib.sha512(), isZip=
zip.extractall(destPath)
else:
# Extract the archive
with tarfile.open(tempFileName, 'r:*') as tgz:
with tarfile.open(tempFileName, 'r:gz') as tgz:
tgz.extractall(destPath)
os.remove(tempFileName)