Use PyExc_OSError directly instead of grabbing it from the socket module API
This commit is contained in:
parent
57735a0d6a
commit
b7705b7792
|
@ -2334,7 +2334,7 @@ PyInit__ssl(void)
|
|||
|
||||
/* Add symbols to module dict */
|
||||
PySSLErrorObject = PyErr_NewException("ssl.SSLError",
|
||||
PySocketModule.error,
|
||||
PyExc_OSError,
|
||||
NULL);
|
||||
if (PySSLErrorObject == NULL)
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue