mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
gh-92536: Remove PyUnicode_READY() calls (#105210)
Since Python 3.12, PyUnicode_READY() does nothing and always returns 0.
This commit is contained in:
parent
cbb9ba844f
commit
ef300937c2
32 changed files with 5 additions and 186 deletions
|
|
@ -4901,8 +4901,6 @@ type_setattro(PyTypeObject *type, PyObject *name, PyObject *value)
|
|||
}
|
||||
if (PyUnicode_Check(name)) {
|
||||
if (PyUnicode_CheckExact(name)) {
|
||||
if (PyUnicode_READY(name) == -1)
|
||||
return -1;
|
||||
Py_INCREF(name);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue