Skip to content

Commit e971618

Browse files
committed
Also correct implementation of 'split'
1 parent 0fe32e1 commit e971618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def zip_children(self):
427427
self.joinpath = zip_path.joinpath
428428

429429
return unique_ordered(
430-
posixpath.split(child)[0]
430+
child.split(posixpath.sep, 1)[0]
431431
for child in names
432432
)
433433

0 commit comments

Comments
 (0)