From: Guido van Rossum Date: Mon, 2 Jun 1997 22:18:09 +0000 (+0000) Subject: socket_type -> SocketType X-Git-Tag: v1.5a3~381 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91ba64ddd9d4835f1c48fbfabd8d1c24e2c777f2;p=python socket_type -> SocketType --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 78c0d896c3..48ce55a08f 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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);