summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-03-23 23:16:54 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-03-23 23:16:54 (GMT)
commit06c34798df6c99cf88ecab98bc7b7f78dfde3ff8 (patch)
treef459cb5821336b8d9dc26d0cbd4f3e8b7913e704 /Modules/_ssl.c
parentfee6f33e08b8b67d260bcf753dceaeb4184baf52 (diff)
downloadcpython-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/_ssl.c')
-rw-r--r--Modules/_ssl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 5fcf84c..bee1040 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -609,7 +609,9 @@ init_ssl(void)
SSLeay_add_ssl_algorithms();
/* Add symbols to module dict */
- PySSLErrorObject = PyErr_NewException("socket.sslerror", NULL, NULL);
+ PySSLErrorObject = PyErr_NewException("socket.sslerror",
+ PySocketModule.error,
+ NULL);
if (PySSLErrorObject == NULL)
return;
PyDict_SetItemString(d, "sslerror", PySSLErrorObject);