diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-22 21:37:51 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-22 21:37:51 (GMT) |
commit | b7705b77926b37e52f0bd36fb6fd4ef6f0e52f0d (patch) | |
tree | ba63c1369a5e3071598a33950f1f8b3a6636b410 /Modules | |
parent | 57735a0d6a139eeff76dc1de84649d498219c7ff (diff) | |
download | cpython-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.c | 2 |
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; |