Skip to content

Commit

Permalink
Fix wrong assert in unicodeobject (GH-5340)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7cc95f5)
  • Loading branch information
miss-islington authored and methane committed Jan 27, 2018
1 parent 12ae407 commit d7274c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d7274c6

Please sign in to comment.