commit | 5bfc03f430ab13ed84c2c30f2c87e9800b5670a4 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue May 19 11:00:07 2015 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Tue May 19 11:00:07 2015 +0300 |
tree | 65bd9f3891193717f61424862ad75b423281d066 | |
parent | 6baa0a53b05d580d21d260c5d7d6ee2d3ff005ee [diff] [blame] |
Issue #23780: Improved error message in os.path.join() with single argument. Idea by R. David Murray.
diff --git a/Lib/macpath.py b/Lib/macpath.py index dbcf368..a90d105 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py
@@ -53,6 +53,8 @@ try: colon = _get_colon(s) path = s + if not p: + path[:0] + colon #23780: Ensure compatible data type even if p is null. for t in p: if (not path) or isabs(t): path = t