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/_warnings.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/_warnings.c.h')
| -rw-r--r-- | Python/clinic/_warnings.c.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/clinic/_warnings.c.h b/Python/clinic/_warnings.c.h index 432e554..c716639 100644 --- a/Python/clinic/_warnings.c.h +++ b/Python/clinic/_warnings.c.h @@ -193,9 +193,6 @@ warnings_warn_explicit(PyObject *module, PyObject *const *args, Py_ssize_t nargs _PyArg_BadArgument("warn_explicit", "argument 'filename'", "str", args[2]); goto exit; } - if (PyUnicode_READY(args[2]) == -1) { - goto exit; - } filename = args[2]; lineno = _PyLong_AsInt(args[3]); if (lineno == -1 && PyErr_Occurred()) { @@ -246,4 +243,4 @@ warnings_filters_mutated(PyObject *module, PyObject *Py_UNUSED(ignored)) { return warnings_filters_mutated_impl(module); } -/*[clinic end generated code: output=20429719d7223bdc input=a9049054013a1b77]*/ +/*[clinic end generated code: output=f8d67e0f75771c36 input=a9049054013a1b77]*/ |
