Fix wrong assert in unicodeobject (GH-5340)

(cherry picked from commit 7cc95f5069)
This commit is contained in:
Miss Islington (bot) 2018-01-27 09:41:24 -08:00 committed by INADA Naoki
parent 12ae40766e
commit d7274c6638
1 changed files with 1 additions and 1 deletions

View File

@ -11217,7 +11217,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;