mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Merge from 3.2 for Issue #12084.
This commit is contained in:
commit
3e86c99f90
4 changed files with 193 additions and 98 deletions
|
@ -1562,7 +1562,7 @@ def can_symlink():
|
|||
os.symlink(TESTFN, symlink_path)
|
||||
can = True
|
||||
os.remove(symlink_path)
|
||||
except (OSError, NotImplementedError):
|
||||
except (OSError, NotImplementedError, AttributeError):
|
||||
can = False
|
||||
_can_symlink = can
|
||||
return can
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue