mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59: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
|
@ -982,7 +982,7 @@ format_long_internal(PyObject *value, const InternalFormatSpec *format,
|
|||
|
||||
/* Do the hard part, converting to a string in a given base */
|
||||
tmp = _PyLong_Format(value, base);
|
||||
if (tmp == NULL || PyUnicode_READY(tmp) == -1)
|
||||
if (tmp == NULL)
|
||||
goto done;
|
||||
|
||||
inumeric_chars = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue