mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Oops. In the tp_name field, the name should be "_socket.socket", not
"socket.socket" -- on Windows, "socket.socket" is the wrapper class. Also added the module name to the SSL type (which is not a new-style class -- I don't want to mess with it yet).
This commit is contained in:
parent
b0c079e3e5
commit
ca6dfa55c5
1 changed files with 2 additions and 2 deletions
|
@ -1853,7 +1853,7 @@ shutdown() -- shut down traffic in one or both directions\n\
|
||||||
static PyTypeObject PySocketSock_Type = {
|
static PyTypeObject PySocketSock_Type = {
|
||||||
PyObject_HEAD_INIT(0) /* Must fill in type value later */
|
PyObject_HEAD_INIT(0) /* Must fill in type value later */
|
||||||
0, /* ob_size */
|
0, /* ob_size */
|
||||||
"socket.socket", /* tp_name */
|
"_socket.socket", /* tp_name */
|
||||||
sizeof(PySocketSockObject), /* tp_basicsize */
|
sizeof(PySocketSockObject), /* tp_basicsize */
|
||||||
0, /* tp_itemsize */
|
0, /* tp_itemsize */
|
||||||
(destructor)PySocketSock_dealloc, /* tp_dealloc */
|
(destructor)PySocketSock_dealloc, /* tp_dealloc */
|
||||||
|
@ -2867,7 +2867,7 @@ static PyObject *PySSL_getattr(PySSLObject *self, char *name)
|
||||||
staticforward PyTypeObject PySSL_Type = {
|
staticforward PyTypeObject PySSL_Type = {
|
||||||
PyObject_HEAD_INIT(NULL)
|
PyObject_HEAD_INIT(NULL)
|
||||||
0, /*ob_size*/
|
0, /*ob_size*/
|
||||||
"SSL", /*tp_name*/
|
"_socket.SSL", /*tp_name*/
|
||||||
sizeof(PySSLObject), /*tp_basicsize*/
|
sizeof(PySSLObject), /*tp_basicsize*/
|
||||||
0, /*tp_itemsize*/
|
0, /*tp_itemsize*/
|
||||||
/* methods */
|
/* methods */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue