Skip to content

Commit 9836259

Browse files
Amendment
1 parent 35586b1 commit 9836259

File tree

6 files changed

+37
-53
lines changed

6 files changed

+37
-53
lines changed

Lib/test/clinic.test.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,9 +1028,8 @@ test_int_converter(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
10281028
goto exit;
10291029
}
10301030
if (PyUnicode_GET_LENGTH(args[2]) != 1) {
1031-
PyErr_Format(PyExc_TypeError,
1032-
"test_int_converter(): argument 3 must be exactly one character long, not %T",
1033-
args[2]);
1031+
PyErr_SetString(PyExc_TypeError,
1032+
"test_int_converter(): argument 3 must be exactly one character long");
10341033
goto exit;
10351034
}
10361035
c = PyUnicode_READ_CHAR(args[2], 0);
@@ -1050,7 +1049,7 @@ test_int_converter(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
10501049

10511050
static PyObject *
10521051
test_int_converter_impl(PyObject *module, int a, int b, int c, myenum d)
1053-
/*[clinic end generated code: output=ef1676a7f1b18b1d input=d20541fc1ca0553e]*/
1052+
/*[clinic end generated code: output=fd8e758049e1d836 input=d20541fc1ca0553e]*/
10541053

10551054

10561055
/*[clinic input]

Modules/clinic/_testclinic.c.h

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/clinic/arraymodule.c.h

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/clinic/unicodedata.c.h

Lines changed: 21 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PC/clinic/msvcrtmodule.c.h

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/clinic/libclinic/converters.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,8 @@ def parse_arg(self, argname: str, displayname: str, *, limited_capi: bool) -> st
272272
goto exit;
273273
}}}}
274274
if (PyUnicode_GET_LENGTH({argname}) != 1) {{{{
275-
PyErr_Format(PyExc_TypeError,
276-
"{{name}}(): {displayname} must be exactly one character long, not %T",
277-
{argname});
275+
PyErr_SetString(PyExc_TypeError,
276+
"{{name}}(): {displayname} must be exactly one character long");
278277
goto exit;
279278
}}}}
280279
{paramname} = PyUnicode_READ_CHAR({argname}, 0);

0 commit comments

Comments
 (0)