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!
This commit is contained in:
Tim Peters 2000-09-19 23:46:56 +00:00
parent f86eda5d19
commit ceeda0e9ba

View file

@ -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