We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00d328b commit c0447ffCopy full SHA for c0447ff
Lib/ntpath.py
@@ -146,7 +146,9 @@ def splitdrive(p):
146
return p[:0], p
147
if is_extended_unc(normp, colon):
148
start = normp.find(sep, index + 1)
149
- index = normp.find(sep, start + 1)
+ drive_colon = normp.find(colon, index + 1)
150
+ if drive_colon == -1 or drive_colon > start:
151
+ index = normp.find(sep, start + 1)
152
index2 = normp.find(sep, index + 1)
153
# a UNC path can't have two slashes in a row
154
# (after the initial two)
0 commit comments