From: INADA Naoki Date: Sat, 27 Jan 2018 17:07:09 +0000 (+0900) Subject: Fix wrong assert in unicodeobject (GH-5340) X-Git-Tag: v3.7.0b1~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cc95f5069c8983afb8a55928db6956abe2d5afa;p=python Fix wrong assert in unicodeobject (GH-5340) --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4b90cc364b..775bd15cf6 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -11038,7 +11038,7 @@ _PyUnicode_EqualToASCIIId(PyObject *left, _Py_Identifier *right) if (PyUnicode_CHECK_INTERNED(left)) return 0; - assert(_PyUnicode_HASH(right_uni) != 1); + assert(_PyUnicode_HASH(right_uni) != -1); hash = _PyUnicode_HASH(left); if (hash != -1 && hash != _PyUnicode_HASH(right_uni)) return 0;