Make socket.sslerror a subclass of socket.error .

Added socket.error to the socket module's C API.
This commit is contained in:
Brett Cannon 2004-03-23 23:16:54 +00:00
parent fee6f33e08
commit 06c34798df
4 changed files with 9 additions and 1 deletions

View file

@ -3559,6 +3559,7 @@ static
PySocketModule_APIObject PySocketModuleAPI =
{
&sock_type,
NULL
};
@ -3596,6 +3597,7 @@ init_socket(void)
socket_error = PyErr_NewException("socket.error", NULL, NULL);
if (socket_error == NULL)
return;
PySocketModuleAPI.error = socket_error;
Py_INCREF(socket_error);
PyModule_AddObject(m, "error", socket_error);
socket_herror = PyErr_NewException("socket.herror",