Skip to content

Commit 4acbfc1

Browse files
committed
fix
1 parent 3f4504b commit 4acbfc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tools/get.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def unpack(filename, destination, force_extract, checksum): # noqa: C901
305305
else:
306306
raise NotImplementedError("Unsupported archive type")
307307

308-
if sys.platform != 'win32' and filename.endswith('zip') and isinstance(cfile, ZipFile):
308+
if sys.platform != 'win32' and filename.endswith('zip') and isinstance(cfile, zipfile.ZipFile):
309309
for file_info in cfile.infolist():
310310
extracted_file = os.path.join(destination, file_info.filename)
311311
extracted_permissions = file_info.external_attr >> 16 & 0o777 # Extract Unix permissions

0 commit comments

Comments
 (0)