Use PyExc_OSError directly instead of grabbing it from the socket module API

This commit is contained in:
Antoine Pitrou 2011-10-22 23:37:51 +02:00
parent 57735a0d6a
commit b7705b7792

View file

@ -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;