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 /Objects/clinic/moduleobject.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 'Objects/clinic/moduleobject.c.h')
-rw-r--r-- | Objects/clinic/moduleobject.c.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Objects/clinic/moduleobject.c.h b/Objects/clinic/moduleobject.c.h index 861bcea..29df388 100644 --- a/Objects/clinic/moduleobject.c.h +++ b/Objects/clinic/moduleobject.c.h @@ -63,9 +63,6 @@ module___init__(PyObject *self, PyObject *args, PyObject *kwargs) _PyArg_BadArgument("module", "argument 'name'", "str", fastargs[0]); goto exit; } - if (PyUnicode_READY(fastargs[0]) == -1) { - goto exit; - } name = fastargs[0]; if (!noptargs) { goto skip_optional_pos; @@ -77,4 +74,4 @@ skip_optional_pos: exit: return return_value; } -/*[clinic end generated code: output=2f897c9e4721f03f input=a9049054013a1b77]*/ +/*[clinic end generated code: output=a5a750cc8190576e input=a9049054013a1b77]*/ |