Commit 67ad776b authored by Victor Stinner's avatar Victor Stinner

Issue #28727: Fix typo in pattern_richcompare()

Typo catched by Serhiy Storchaka, thanks!
parent 7724fca5
......@@ -2688,7 +2688,7 @@ pattern_richcompare(PyObject *lefto, PyObject *righto, int op)
cmp = (left->flags == right->flags
&& left->isbytes == right->isbytes
&& left->codesize && right->codesize);
&& left->codesize == right->codesize);
if (cmp) {
/* Compare the code and the pattern because the same pattern can
produce different codes depending on the locale used to compile the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment