mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix #9333 on Windows XP, where os.symlink is not a possibility.
This commit is contained in:
parent
80e788a5dd
commit
57160d7204
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue