summaryrefslogtreecommitdiffstats
path: root/Python/clinic/sysmodule.c.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-01 23:31:58 (GMT)
committerGitHub <noreply@github.com>2023-06-01 23:31:58 (GMT)
commitcbb9ba844f15f2b8127028e6dfd4681b2cb2376f (patch)
treee80117a8aa3fd5a6e2d13a3295a9d908c6cc5fa5 /Python/clinic/sysmodule.c.h
parent146939306adcff706ebddb047f7470d148125cdf (diff)
downloadcpython-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/sysmodule.c.h')
-rw-r--r--Python/clinic/sysmodule.c.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/clinic/sysmodule.c.h b/Python/clinic/sysmodule.c.h
index 7a7c188..a95a32f 100644
--- a/Python/clinic/sysmodule.c.h
+++ b/Python/clinic/sysmodule.c.h
@@ -282,9 +282,6 @@ sys_intern(PyObject *module, PyObject *arg)
_PyArg_BadArgument("intern", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
s = arg;
return_value = sys_intern_impl(module, s);
@@ -1415,4 +1412,4 @@ exit:
#ifndef SYS_GETANDROIDAPILEVEL_METHODDEF
#define SYS_GETANDROIDAPILEVEL_METHODDEF
#endif /* !defined(SYS_GETANDROIDAPILEVEL_METHODDEF) */
-/*[clinic end generated code: output=6d598acc26237fbe input=a9049054013a1b77]*/
+/*[clinic end generated code: output=41937e0843c68009 input=a9049054013a1b77]*/