mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)
This commit is contained in:
parent
fdbd01151d
commit
55fe1ae970
36 changed files with 1538 additions and 1538 deletions
|
@ -135,7 +135,7 @@ semlock_acquire(SemLockObject *self, PyObject *args, PyObject *kwds)
|
|||
Py_RETURN_TRUE;
|
||||
case WAIT_OBJECT_0 + 1:
|
||||
errno = EINTR;
|
||||
return PyErr_SetFromErrno(PyExc_IOError);
|
||||
return PyErr_SetFromErrno(PyExc_OSError);
|
||||
case WAIT_FAILED:
|
||||
return PyErr_SetFromWindowsErr(0);
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue