File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -130,14 +130,12 @@ def join(path, *paths):
130
130
# Same drive in different case
131
131
result_drive = p_drive
132
132
# Second path is relative to the first
133
- # gh-117349: Indexing bytes is not correct here
134
- if result_path and result_path [- 1 :] not in seps :
133
+ if result_path and result_path [- 1 ] not in seps :
135
134
result_path = result_path + sep
136
135
result_path = result_path + p_path
137
136
## add separator between UNC and non-absolute path
138
- ## Indexing bytes is not correct here
139
137
if (result_path and not result_root and
140
- result_drive and result_drive [- 1 : ] not in colon + seps ):
138
+ result_drive and result_drive [- 1 ] not in colon + seps ):
141
139
return result_drive + sep + result_path
142
140
return result_drive + result_root + result_path
143
141
except (TypeError , AttributeError , BytesWarning ):
You can’t perform that action at this time.
0 commit comments