]> granicus.if.org Git - python/commitdiff
Oops. In the tp_name field, the name should be "_socket.socket", not
authorGuido van Rossum <guido@python.org>
Sun, 28 Oct 2001 12:31:33 +0000 (12:31 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 28 Oct 2001 12:31:33 +0000 (12:31 +0000)
"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).

Modules/socketmodule.c

index 99761f4b1a42057786c9034a6ee0c087ddf2e67f..f1b68c944374b0a797b7dc575116a8d5ee6b709e 100644 (file)
@@ -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 */