Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove break & else
  • Loading branch information
nineteendo committed Mar 26, 2024
commit a5212827b3485c7a52b0f2a9af99ccc2ad7f4afd
7 changes: 2 additions & 5 deletions Lib/posixpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,6 @@ def commonpath(paths):
s2 = max(split_paths)
for i, c in enumerate(s1):
if c != s2[i]:
common = s1[:i]
break
else:
common = s1
return prefix + sep.join(s1[:i])

return prefix + sep.join(common)
return prefix + sep.join(s1)