Skip to content

Commit

Permalink
Fix wrong assert in unicodeobject (GH-5340)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane authored Jan 27, 2018
1 parent 4defba3 commit 7cc95f5
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 @@ -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;
Expand Down

0 comments on commit 7cc95f5

Please sign in to comment.