Skip to content

Commit 1981add

Browse files
committed
Change how detecting extending UNC Path
1 parent c0447ff commit 1981add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/ntpath.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def is_drive_path(path, colon):
171171

172172

173173
def is_extended_unc(path, colon):
174-
return path[2] in ['?', '.'] and path[-2] != colon
174+
return path[2] in ['?', '.'] and path[-2] != colon and path[4:7] == 'UNC'
175175

176176

177177
def get_separator(path):

0 commit comments

Comments
 (0)