Fix pathlib import on windows

This commit is contained in:
Noah
2020-10-30 13:34:40 -05:00
parent 56b46b7281
commit 1dccad99b3

3
Lib/pathlib.py vendored
View File

@@ -16,7 +16,8 @@ from urllib.parse import quote_from_bytes as urlquote_from_bytes
supports_symlinks = True
if os.name == 'nt':
import nt
if sys.getwindowsversion()[:2] >= (6, 0):
# XXX RUSTPYTHON TODO: nt._getfinalpathname
if False and sys.getwindowsversion()[:2] >= (6, 0):
from nt import _getfinalpathname
else:
supports_symlinks = False