diff options
author | Guido van Rossum <guido@python.org> | 2001-10-28 12:31:33 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-10-28 12:31:33 (GMT) |
commit | ca6dfa55c50621b78366685d71041c0414c1189c (patch) | |
tree | e58ab5d97cdd37d8ccc77cff38e9e3f4f9ad1a75 /Modules | |
parent | b0c079e3e5793290db8651ea4edbbf6d4ba18218 (diff) | |
download | cpython-ca6dfa55c50621b78366685d71041c0414c1189c.zip cpython-ca6dfa55c50621b78366685d71041c0414c1189c.tar.gz cpython-ca6dfa55c50621b78366685d71041c0414c1189c.tar.bz2 |
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).
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 99761f4..f1b68c9 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1853,7 +1853,7 @@ shutdown() -- shut down traffic in one or both directions\n\ static PyTypeObject PySocketSock_Type = { PyObject_HEAD_INIT(0) /* Must fill in type value later */ 0, /* ob_size */ - "socket.socket", /* tp_name */ + "_socket.socket", /* tp_name */ sizeof(PySocketSockObject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)PySocketSock_dealloc, /* tp_dealloc */ @@ -2867,7 +2867,7 @@ static PyObject *PySSL_getattr(PySSLObject *self, char *name) staticforward PyTypeObject PySSL_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "SSL", /*tp_name*/ + "_socket.SSL", /*tp_name*/ sizeof(PySSLObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ |