diff options
author | Guido van Rossum <guido@python.org> | 1997-06-02 22:18:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-06-02 22:18:09 (GMT) |
commit | 91ba64ddd9d4835f1c48fbfabd8d1c24e2c777f2 (patch) | |
tree | cdd235786857734c49e70e4071f746871f2f2004 | |
parent | 24995b99e1131cfb747e535a69440e56e6b7393f (diff) | |
download | cpython-91ba64ddd9d4835f1c48fbfabd8d1c24e2c777f2.zip cpython-91ba64ddd9d4835f1c48fbfabd8d1c24e2c777f2.tar.gz cpython-91ba64ddd9d4835f1c48fbfabd8d1c24e2c777f2.tar.bz2 |
socket_type -> SocketType
-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 78c0d89..48ce55a 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); |