mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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).
This commit is contained in:
parent
146939306a
commit
cbb9ba844f
35 changed files with 37 additions and 321 deletions
5
Python/clinic/sysmodule.c.h
generated
5
Python/clinic/sysmodule.c.h
generated
|
|
@ -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]*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue