[issue30177] pathlib.resolve(strict=False) only includes first child
Steve Dower
report at bugs.python.org
Wed May 31 19:27:08 EDT 2017
Steve Dower added the comment:
The initial fix should be easy:
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -329,8 +329,6 @@ class _PosixFlavour(_Flavour):
if e.errno != EINVAL:
if strict:
raise
- else:
- return newpath
# Not a symlink
path = newpath
However, the trick is going to be in the tests, which are shared between POSIX and Windows - and are apparently passing on Windows right now. I'm not entirely sure why that is, but it may not be as simple here as "works on POSIX".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30177>
_______________________________________
More information about the Python-bugs-list
mailing list