Commit 4002234b authored by Tim Peters's avatar Tim Peters

Treat trailing colon in os.path.join("a:", "b") same way for DOS as in

recent changes to ntpath.py and posixmodule.c.  Thanks to Guido for
pointing out the inconsistency!
parent 41a9815f
......@@ -36,7 +36,7 @@ def join(a, *p):
for b in p:
if isabs(b):
path = b
elif path == '' or path[-1:] in '/\\':
elif path == '' or path[-1:] in '/\\:':
path = path + b
else:
path = path + os.sep + b
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment