]> granicus.if.org Git - python/commitdiff
Treat trailing colon in os.path.join("a:", "b") same way for DOS as in
authorTim Peters <tim.peters@gmail.com>
Tue, 19 Sep 2000 23:46:56 +0000 (23:46 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 19 Sep 2000 23:46:56 +0000 (23:46 +0000)
recent changes to ntpath.py and posixmodule.c.  Thanks to Guido for
pointing out the inconsistency!

Lib/dospath.py

index 98efe6751f5c26eaf90267779f4ed7d34c0267da..61fde00043d28ff93262a057c7b05d1463a76b94 100644 (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