Browse Source

Fix wrong assert in unicodeobject (GH-5340)

pull/5363/head
INADA Naoki 8 years ago
committed by GitHub
parent
commit
7cc95f5069
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Objects/unicodeobject.c

2
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;

Loading…
Cancel
Save