Skip to content

Commit e40c4c1

Browse files
committed
Fix for Python <3.10
1 parent 7d94d8e commit e40c4c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setuptools/command/editable_wheel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,8 @@ def _check_case(path, n):
810810
path.as_posix() in (p.as_posix() for p in path.parent.iterdir())
811811
# check the case of the next n parent directories the same way
812812
and all(
813-
p1.as_posix() in (p.as_posix() for p in p2.iterdir())
814-
for p1, p2 in list(zip(path.parents, path.parents[1:]))[:n]
813+
part.as_posix() in (p.as_posix() for p in part.parent.iterdir())
814+
for part in list(path.parents)[:n]
815815
)
816816
)
817817
)

0 commit comments

Comments
 (0)