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
1 changed files with 1 additions and 1 deletions

View File

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