summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2012-08-21 14:54:22 +0100
committerRichard Oudkerk <shibturn@gmail.com>2012-08-21 14:54:22 +0100
commit6733927761c0ad5d51a56fd8e3c70eff466a3f6c (patch)
tree0851088d63bee5b7f5461e386309716af402945a
parentb9717b5e022086c057f5c19b7a124a7800aa052a (diff)
downloadcpython-git-6733927761c0ad5d51a56fd8e3c70eff466a3f6c.tar.gz
Fix typo in error handling for WaitForMultipleObjects()
-rw-r--r--Modules/_winapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_winapi.c b/Modules/_winapi.c
index af6b5d7e09..1074891ef1 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);