summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-10-04 14:06:30 (GMT)
committerJesus Cea <jcea@jcea.es>2012-10-04 14:06:30 (GMT)
commit6e1d2b6e7889a138c02c027f8c3dce6ead62e3cf (patch)
tree20f290d7aba6c6037157b89e1e2e73cbe4c7cbe4 /Modules/_testcapimodule.c
parente8801e2e44b4ffcfdfc6e2857e7afc90ba6abc38 (diff)
downloadcpython-6e1d2b6e7889a138c02c027f8c3dce6ead62e3cf.zip
cpython-6e1d2b6e7889a138c02c027f8c3dce6ead62e3cf.tar.gz
cpython-6e1d2b6e7889a138c02c027f8c3dce6ead62e3cf.tar.bz2
Closes #16126: PyErr_Format format mismatch in _testcapimodule.c
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index ce58651..ab11f51 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -1238,7 +1238,7 @@ parse_tuple_and_keywords(PyObject *self, PyObject *args)
o = PySequence_Fast_GET_ITEM(sub_keywords, i);
if (!PyUnicode_FSConverter(o, (void *)(converted + i))) {
PyErr_Format(PyExc_ValueError,
- "parse_tuple_and_keywords: could not convert keywords[%s] to narrow string", i);
+ "parse_tuple_and_keywords: could not convert keywords[%zd] to narrow string", i);
goto exit;
}
keywords[i] = PyBytes_AS_STRING(converted[i]);