Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Jan 14, 2025
1 parent 3f4504b commit 4acbfc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def unpack(filename, destination, force_extract, checksum): # noqa: C901
else:
raise NotImplementedError("Unsupported archive type")

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

0 comments on commit 4acbfc1

Please sign in to comment.