We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38efc89 commit e07a953Copy full SHA for e07a953
Modules/socketmodule.c
@@ -5582,7 +5582,7 @@ socket_getattr(PyObject *self, PyObject *name)
5582
PyErr_Warn(PyExc_DeprecationWarning, "_socket.SocketType is deprecated and "
5583
"will be removed in Python 3.16. "
5584
"Use socket.socket instead");
5585
- return state != NULL ? state->sock_type : NULL;
+ return state != NULL ? (PyObject *)state->sock_type : NULL;
5586
}
5587
5588
PyErr_Format(PyExc_AttributeError, "module _socket has no attribute '%U'", name);
0 commit comments