diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-03-23 23:16:54 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-03-23 23:16:54 (GMT) |
commit | 06c34798df6c99cf88ecab98bc7b7f78dfde3ff8 (patch) | |
tree | f459cb5821336b8d9dc26d0cbd4f3e8b7913e704 /Modules/socketmodule.c | |
parent | fee6f33e08b8b67d260bcf753dceaeb4184baf52 (diff) | |
download | cpython-06c34798df6c99cf88ecab98bc7b7f78dfde3ff8.zip cpython-06c34798df6c99cf88ecab98bc7b7f78dfde3ff8.tar.gz cpython-06c34798df6c99cf88ecab98bc7b7f78dfde3ff8.tar.bz2 |
Make socket.sslerror a subclass of socket.error .
Added socket.error to the socket module's C API.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 818d169..7beb1cf 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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", |