mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
unicode_kind_name() doesn't check consistency anymore
It is is called from _PyUnicode_Dump() and so must not fail.
This commit is contained in:
parent
a3b334da6d
commit
42dfd71333
1 changed files with 2 additions and 1 deletions
|
@ -627,7 +627,8 @@ _PyUnicode_New(Py_ssize_t length)
|
|||
static const char*
|
||||
unicode_kind_name(PyObject *unicode)
|
||||
{
|
||||
assert(_PyUnicode_CHECK(unicode));
|
||||
/* don't check consistency: unicode_kind_name() is called from
|
||||
_PyUnicode_Dump() */
|
||||
if (!PyUnicode_IS_COMPACT(unicode))
|
||||
{
|
||||
if (!PyUnicode_IS_READY(unicode))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue