]> granicus.if.org Git - python/commitdiff
socket_type -> SocketType
authorGuido van Rossum <guido@python.org>
Mon, 2 Jun 1997 22:18:09 +0000 (22:18 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 2 Jun 1997 22:18:09 +0000 (22:18 +0000)
Modules/socketmodule.c

index 78c0d896c376824ccad59729de14c4a4e6814f73..48ce55a08ff3851f8eed434c3f39c027da411203 100644 (file)
@@ -1404,9 +1404,9 @@ initsocket()
                Py_FatalError("can't define socket.error");
        PySocketSock_Type.ob_type = &PyType_Type;
        Py_INCREF(&PySocketSock_Type);
-       if (PyDict_SetItemString(d, "socket_type",
+       if (PyDict_SetItemString(d, "SocketType",
                                 (PyObject *)&PySocketSock_Type) != 0)
-               Py_FatalError("can't define socket.socket_type");
+               Py_FatalError("can't define socket.SocketType");
        insint(d, "AF_INET", AF_INET);
 #ifdef AF_UNIX
        insint(d, "AF_UNIX", AF_UNIX);