socket_type -> SocketType

This commit is contained in:
Guido van Rossum 1997-06-02 22:18:09 +00:00
parent 24995b99e1
commit 91ba64ddd9
1 changed files with 2 additions and 2 deletions

View 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);