projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f86eda5
)
Treat trailing colon in os.path.join("a:", "b") same way for DOS as in
author
Tim Peters
<tim.peters@gmail.com>
Tue, 19 Sep 2000 23:46:56 +0000
(23:46 +0000)
committer
Tim 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
patch
|
blob
|
history
diff --git
a/Lib/dospath.py
b/Lib/dospath.py
index 98efe6751f5c26eaf90267779f4ed7d34c0267da..61fde00043d28ff93262a057c7b05d1463a76b94 100644
(file)
--- 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