commit | 0eeba5b24b0cf5297421c7bd5dbc38aff774dc5f | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Tue Sep 19 20:39:32 2000 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Tue Sep 19 20:39:32 2000 +0000 |
tree | e59a3f89f3f8e46bbd834d760fc7dcc3ef2273c2 | |
parent | f5fa0fc640425fd98b1f0178d73e786e20d833cf [diff] |
Part of SF patch 101481: on Windows, os.path.join("a:", "b") should yield "a:b", not "a:/b". Similar change was made to posixmodule.c earlier.
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index aa441bd..c68232b 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py
@@ -41,7 +41,7 @@ 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