mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
Use PyExc_OSError directly instead of grabbing it from the socket module API
This commit is contained in:
parent
57735a0d6a
commit
b7705b7792
1 changed files with 1 additions and 1 deletions
|
|
@ -2334,7 +2334,7 @@ PyInit__ssl(void)
|
||||||
|
|
||||||
/* Add symbols to module dict */
|
/* Add symbols to module dict */
|
||||||
PySSLErrorObject = PyErr_NewException("ssl.SSLError",
|
PySSLErrorObject = PyErr_NewException("ssl.SSLError",
|
||||||
PySocketModule.error,
|
PyExc_OSError,
|
||||||
NULL);
|
NULL);
|
||||||
if (PySSLErrorObject == NULL)
|
if (PySSLErrorObject == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue