diff --git a/Modules/_winapi.c b/Modules/_winapi.c index af6b5d7e098..1074891ef11 100644 --- a/Modules/_winapi.c +++ b/Modules/_winapi.c @@ -1058,7 +1058,7 @@ winapi_WaitForMultipleObjects(PyObject* self, PyObject* args) if (!PySequence_Check(handle_seq)) { PyErr_Format(PyExc_TypeError, "sequence type expected, got '%s'", - Py_TYPE(handle_seq)->tp_doc); + Py_TYPE(handle_seq)->tp_name); return NULL; } nhandles = PySequence_Length(handle_seq);