]> granicus.if.org Git - python/commitdiff
Use PyExc_OSError directly instead of grabbing it from the socket module API
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 22 Oct 2011 21:37:51 +0000 (23:37 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 22 Oct 2011 21:37:51 +0000 (23:37 +0200)
Modules/_ssl.c

index 7fee74cd5343f6028a1fd94eb638f4287a7b2c0c..36ce33fc53c9dd7ee2be38a212289940f73ca0e9 100644 (file)
@@ -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;