From d7274c6638fc88d72b73f8cdc6b888270a5e7a50 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sat, 27 Jan 2018 09:41:24 -0800 Subject: [PATCH] Fix wrong assert in unicodeobject (GH-5340) (cherry picked from commit 7cc95f5069c8983afb8a55928db6956abe2d5afa) --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3