mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
Fix wrong assert in unicodeobject (GH-5340)
This commit is contained in:
parent
4defba3b95
commit
7cc95f5069
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue