mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +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
|
@ -21,8 +21,6 @@ static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen,
|
|||
return NULL;
|
||||
}
|
||||
if (PyUnicode_Check(sep)) {
|
||||
if (PyUnicode_READY(sep))
|
||||
return NULL;
|
||||
if (PyUnicode_KIND(sep) != PyUnicode_1BYTE_KIND) {
|
||||
PyErr_SetString(PyExc_ValueError, "sep must be ASCII.");
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue