Skip to content

Commit 2f22010

Browse files
committed
Correct error display in _testcapi/vectorcall.c
1 parent 7afe1ad commit 2f22010

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_testcapi/vectorcall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,13 @@ _testcapi_VectorCallClass_set_vectorcall_impl(PyObject *self,
179179
if (!PyObject_TypeCheck(self, type)) {
180180
return PyErr_Format(
181181
PyExc_TypeError,
182-
"expected %s instance",
182+
"expected %S instance",
183183
PyType_GetName(type));
184184
}
185185
if (!type->tp_vectorcall_offset) {
186186
return PyErr_Format(
187187
PyExc_TypeError,
188-
"type %s has no vectorcall offset",
188+
"type %S has no vectorcall offset",
189189
PyType_GetName(type));
190190
}
191191
*(vectorcallfunc*)((char*)self + type->tp_vectorcall_offset) = (

0 commit comments

Comments
 (0)