Close zipfile. fixes #1798
This commit is contained in:
1 parent
95d146fea2
commit
750e02f38a
1 file changed
+1
@@ -279,6 +279,7 @@ class SourceUpdater(BaseUpdater):
|
|||||||
if download_data.get('type') == 'zip':
|
if download_data.get('type') == 'zip':
|
||||||
zip = zipfile.ZipFile(destination)
|
zip = zipfile.ZipFile(destination)
|
||||||
zip.extractall(extracted_path)
|
zip.extractall(extracted_path)
|
||||||
|
zip.close()
|
||||||
else:
|
else:
|
||||||
tar = tarfile.open(destination)
|
tar = tarfile.open(destination)
|
||||||
tar.extractall(path = extracted_path)
|
tar.extractall(path = extracted_path)
|
||||||
|
|||||||
Reference in new issue
Block a user