mirror of https://github.com/python/cpython
Fix #9333 on Windows XP, where os.symlink is not a possibility.
This commit is contained in:
parent
80e788a5dd
commit
57160d7204
|
@ -1422,7 +1422,7 @@ def can_symlink():
|
|||
try:
|
||||
os.symlink(TESTFN, TESTFN + "can_symlink")
|
||||
can = True
|
||||
except OSError:
|
||||
except (OSError, NotImplementedError):
|
||||
can = False
|
||||
_can_symlink = can
|
||||
return can
|
||||
|
|
Loading…
Reference in New Issue