diff options
| author | Victor Stinner <vstinner@python.org> | 2023-06-01 23:31:58 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-01 23:31:58 (GMT) |
| commit | cbb9ba844f15f2b8127028e6dfd4681b2cb2376f (patch) | |
| tree | e80117a8aa3fd5a6e2d13a3295a9d908c6cc5fa5 /Python/clinic/bltinmodule.c.h | |
| parent | 146939306adcff706ebddb047f7470d148125cdf (diff) | |
| download | cpython-cbb9ba844f15f2b8127028e6dfd4681b2cb2376f.zip cpython-cbb9ba844f15f2b8127028e6dfd4681b2cb2376f.tar.gz cpython-cbb9ba844f15f2b8127028e6dfd4681b2cb2376f.tar.bz2 | |
gh-92536: Argument Clinic no longer emits PyUnicode_READY() (#105208)
Since Python 3.12, PyUnicode_READY() does nothing and always
returns 0.
Argument Clinic now also checks for .cpp files (PC/_wmimodule.cpp).
Diffstat (limited to 'Python/clinic/bltinmodule.c.h')
| -rw-r--r-- | Python/clinic/bltinmodule.c.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h index b77b4a1..b0d05dd 100644 --- a/Python/clinic/bltinmodule.c.h +++ b/Python/clinic/bltinmodule.c.h @@ -216,9 +216,6 @@ builtin_format(PyObject *module, PyObject *const *args, Py_ssize_t nargs) _PyArg_BadArgument("format", "argument 2", "str", args[1]); goto exit; } - if (PyUnicode_READY(args[1]) == -1) { - goto exit; - } format_spec = args[1]; skip_optional: return_value = builtin_format_impl(module, value, format_spec); @@ -1409,4 +1406,4 @@ builtin_issubclass(PyObject *module, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=84a04e7446debf58 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=ef2f16ece134d62d input=a9049054013a1b77]*/ |
