Antoine Pitrou added the comment:
The 2.7-compatible version of pathlib explains why the code is structured this
way:
if sys.getwindowsversion()[:2] >= (6, 0) and sys.version_info >= (3, 2):
from nt import _getfinalpathname
else:
supports_symlinks = False
_getfinalpathname = None
In the stdlib version, I removed the `sys.version_info >= (3, 2)` and so it may
look like as easy to rely on os.symlink raising NotImplementedError. That would
make merging back more difficult, though, so I'd rather keep it like that.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19792>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com