We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82db423 commit 5f29ad3Copy full SHA for 5f29ad3
Lib/ntpath.py
@@ -62,6 +62,12 @@ def _get_colon(path):
62
else:
63
return ':'
64
65
+def _get_colon_seps(path):
66
+ if isinstance(path, bytes):
67
+ return b':'+bsep+baltsep
68
+ else:
69
+ return ':'+sep+altsep
70
+
71
def _get_unc_prefix(path):
72
if isinstance(path, bytes):
73
return b'\\\\?\\UNC\\'
@@ -125,7 +131,7 @@ def join(path, *paths):
125
131
path = os.fspath(path)
126
132
sep = _get_sep(path)
127
133
seps = _get_bothseps(path)
128
- colon_seps = _get_colon(path)
134
+ colon_seps = _get_colon_seps(path)
129
135
try:
130
136
result_drive, result_root, result_path = splitroot(path)
137
for p in paths:
0 commit comments