mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
This commit is contained in:
parent
31584cb43d
commit
a120ffcf12
4 changed files with 15 additions and 5 deletions
|
@ -2114,7 +2114,7 @@ static PyObject *SSL_getattr(SSLObject *self, char *name)
|
|||
}
|
||||
|
||||
staticforward PyTypeObject SSL_Type = {
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /*ob_size*/
|
||||
"SSL", /*tp_name*/
|
||||
sizeof(SSLObject), /*tp_basicsize*/
|
||||
|
@ -2381,6 +2381,9 @@ init_socket(void)
|
|||
return;
|
||||
#endif /* __TOS_OS2__ */
|
||||
#endif /* MS_WINDOWS */
|
||||
#ifdef USE_SSL
|
||||
SSL_Type.ob_type = &PyType_Type;
|
||||
#endif
|
||||
m = Py_InitModule3("_socket", PySocket_methods, module_doc);
|
||||
d = PyModule_GetDict(m);
|
||||
PySocket_Error = PyErr_NewException("socket.error", NULL, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue