summaryrefslogtreecommitdiffstats
path: root/Lib/dospath.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2000-09-19 23:46:56 (GMT)
committerTim Peters <tim.peters@gmail.com>2000-09-19 23:46:56 (GMT)
commitceeda0e9ba0a734cc4f2e4b5be268ba081fd617b (patch)
treeb0fbc122680c9cefad31009ee7eff0ee885714e4 /Lib/dospath.py
parentf86eda5d1921258a1b8bcc9c1779d579cfbe7b1c (diff)
downloadcpython-ceeda0e9ba0a734cc4f2e4b5be268ba081fd617b.zip
cpython-ceeda0e9ba0a734cc4f2e4b5be268ba081fd617b.tar.gz
cpython-ceeda0e9ba0a734cc4f2e4b5be268ba081fd617b.tar.bz2
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!
Diffstat (limited to 'Lib/dospath.py')
-rw-r--r--Lib/dospath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dospath.py b/Lib/dospath.py
index 98efe67..61fde00 100644
--- a/Lib/dospath.py
+++ b/Lib/dospath.py
@@ -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