From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 27 Jan 2018 17:41:24 +0000 (-0800) Subject: Fix wrong assert in unicodeobject (GH-5340) X-Git-Tag: v3.6.5rc1~137 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7274c6638fc88d72b73f8cdc6b888270a5e7a50;p=thirdparty%2FPython%2Fcpython.git Fix wrong assert in unicodeobject (GH-5340) (cherry picked from commit 7cc95f5069c8983afb8a55928db6956abe2d5afa) --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 86cac96cd620..9ccd06eebb48 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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;