Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7705b7

Browse files
committed
Use PyExc_OSError directly instead of grabbing it from the socket module API
1 parent 57735a0 commit b7705b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2334,7 +2334,7 @@ PyInit__ssl(void)
23342334

23352335
/* Add symbols to module dict */
23362336
PySSLErrorObject = PyErr_NewException("ssl.SSLError",
2337-
PySocketModule.error,
2337+
PyExc_OSError,
23382338
NULL);
23392339
if (PySSLErrorObject == NULL)
23402340
return NULL;

0 commit comments

Comments
 (0)