mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -122,12 +122,6 @@ _PyPegen_join_names_with_dot(Parser *p, expr_ty first_name, expr_ty second_name)
|
|||
PyObject *first_identifier = first_name->v.Name.id;
|
||||
PyObject *second_identifier = second_name->v.Name.id;
|
||||
|
||||
if (PyUnicode_READY(first_identifier) == -1) {
|
||||
return NULL;
|
||||
}
|
||||
if (PyUnicode_READY(second_identifier) == -1) {
|
||||
return NULL;
|
||||
}
|
||||
const char *first_str = PyUnicode_AsUTF8(first_identifier);
|
||||
if (!first_str) {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue