From: Antoine Pitrou Date: Sat, 22 Oct 2011 21:37:51 +0000 (+0200) Subject: Use PyExc_OSError directly instead of grabbing it from the socket module API X-Git-Tag: v3.3.0a1~1099 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7705b77926b37e52f0bd36fb6fd4ef6f0e52f0d;p=thirdparty%2FPython%2Fcpython.git Use PyExc_OSError directly instead of grabbing it from the socket module API --- diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 7fee74cd5343..36ce33fc53c9 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;