Commit 57160d72 authored by Brian Curtin's avatar Brian Curtin

Fix #9333 on Windows XP, where os.symlink is not a possibility.

parent 80e788a5
...@@ -1422,7 +1422,7 @@ def can_symlink(): ...@@ -1422,7 +1422,7 @@ def can_symlink():
try: try:
os.symlink(TESTFN, TESTFN + "can_symlink") os.symlink(TESTFN, TESTFN + "can_symlink")
can = True can = True
except OSError: except (OSError, NotImplementedError):
can = False can = False
_can_symlink = can _can_symlink = can
return can return can
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment