summaryrefslogtreecommitdiffstats
path: root/PC/clinic/winreg.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 /PC/clinic/winreg.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 'PC/clinic/winreg.c.h')
-rw-r--r--PC/clinic/winreg.c.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/PC/clinic/winreg.c.h b/PC/clinic/winreg.c.h
index 2907788..2aa0698 100644
--- a/PC/clinic/winreg.c.h
+++ b/PC/clinic/winreg.c.h
@@ -1458,9 +1458,6 @@ winreg_SetValue(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
_PyArg_BadArgument("SetValue", "argument 4", "str", args[3]);
goto exit;
}
- if (PyUnicode_READY(args[3]) == -1) {
- goto exit;
- }
value_obj = args[3];
return_value = winreg_SetValue_impl(module, key, sub_key, type, value_obj);
@@ -1791,4 +1788,4 @@ exit:
#ifndef WINREG_QUERYREFLECTIONKEY_METHODDEF
#define WINREG_QUERYREFLECTIONKEY_METHODDEF
#endif /* !defined(WINREG_QUERYREFLECTIONKEY_METHODDEF) */
-/*[clinic end generated code: output=bbfdbb8681102d5c input=a9049054013a1b77]*/
+/*[clinic end generated code: output=d2bf1f58ad07e5f8 input=a9049054013a1b77]*/