summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-22 21:37:51 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-22 21:37:51 (GMT)
commitb7705b77926b37e52f0bd36fb6fd4ef6f0e52f0d (patch)
treeba63c1369a5e3071598a33950f1f8b3a6636b410 /Modules
parent57735a0d6a139eeff76dc1de84649d498219c7ff (diff)
downloadcpython-b7705b77926b37e52f0bd36fb6fd4ef6f0e52f0d.zip
cpython-b7705b77926b37e52f0bd36fb6fd4ef6f0e52f0d.tar.gz
cpython-b7705b77926b37e52f0bd36fb6fd4ef6f0e52f0d.tar.bz2
Use PyExc_OSError directly instead of grabbing it from the socket module API
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 7fee74c..36ce33f 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;