Skip to content

Commit 1dccad9

Browse files
committed
Fix pathlib import on windows
1 parent 56b46b7 commit 1dccad9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/pathlib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
supports_symlinks = True
1717
if os.name == 'nt':
1818
import nt
19-
if sys.getwindowsversion()[:2] >= (6, 0):
19+
# XXX RUSTPYTHON TODO: nt._getfinalpathname
20+
if False and sys.getwindowsversion()[:2] >= (6, 0):
2021
from nt import _getfinalpathname
2122
else:
2223
supports_symlinks = False

0 commit comments

Comments
 (0)