From b7705b77926b37e52f0bd36fb6fd4ef6f0e52f0d Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 22 Oct 2011 23:37:51 +0200 Subject: [PATCH] Use PyExc_OSError directly instead of grabbing it from the socket module API --- Modules/_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 7fee74cd534..36ce33fc53c 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;