]> granicus.if.org Git - python/commitdiff
Fix typo in error handling for WaitForMultipleObjects()
authorRichard Oudkerk <shibturn@gmail.com>
Tue, 21 Aug 2012 13:54:22 +0000 (14:54 +0100)
committerRichard Oudkerk <shibturn@gmail.com>
Tue, 21 Aug 2012 13:54:22 +0000 (14:54 +0100)
Modules/_winapi.c

index af6b5d7e09899386a0870ca3ca80b66ef1d41c8f..1074891ef11aa4ae4d826088b97f6960d3d43722 100644 (file)
@@ -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);