mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #16719: Get rid of WindowsError. Use OSError instead
Patch by Serhiy Storchaka.
This commit is contained in:
parent
8a045cb93b
commit
2606a6f197
28 changed files with 79 additions and 87 deletions
|
|
@ -56,9 +56,9 @@ except ImportError:
|
|||
# os.symlink on Windows prior to 6.0 raises NotImplementedError
|
||||
symlink_exception = (AttributeError, NotImplementedError)
|
||||
try:
|
||||
# WindowsError (1314) will be raised if the caller does not hold the
|
||||
# OSError (winerror=1314) will be raised if the caller does not hold the
|
||||
# SeCreateSymbolicLinkPrivilege privilege
|
||||
symlink_exception += (WindowsError,)
|
||||
symlink_exception += (OSError,)
|
||||
except NameError:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue