Skip to content

Commit a11b7d3

Browse files
authored
Use commonpath() for path segment prefixes, not commonprefix() (#273)
1 parent cc42bec commit a11b7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_make_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def download_zip_into(url, path):
159159
urlretrieve(url, zip_file)
160160
print("Extracting", zip_file)
161161
with zipfile.ZipFile(zip_file) as zf:
162-
prefix = os.path.commonprefix(zf.namelist())
162+
prefix = os.path.commonpath(zf.namelist())
163163
for m in zf.infolist():
164164
fn = m.filename.removeprefix(prefix).lstrip("/\\")
165165
if not fn or fn.endswith(("/", "\\")):

0 commit comments

Comments
 (0)