unicode_kind_name() doesn't check consistency anymore
It is is called from _PyUnicode_Dump() and so must not fail.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index cc6b416..30db418 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -627,7 +627,8 @@
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))