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

This commit is contained in:
Brian Curtin 2010-12-29 02:04:28 +00:00
parent 80e788a5dd
commit 57160d7204
1 changed files with 1 additions and 1 deletions

View File

@ -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