summaryrefslogtreecommitdiff
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-22 23:37:51 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-22 23:37:51 +0200
commit7f55d087ed4bc441f372bfd63f2007687a6b3d9d (patch)
tree4da749cdf29d26b26dab059a4e836747e9bae868 /Modules/_ssl.c
parent3f7cdc47ddc44a78276a5b7ac5c8e855fb944b0b (diff)
downloadcpython-7f55d087ed4bc441f372bfd63f2007687a6b3d9d.tar.gz
Use PyExc_OSError directly instead of grabbing it from the socket module API
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 7fee74cd53..36ce33fc53 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -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;