mirror of https://github.com/python/cpython
Issue #28727: Fix typo in pattern_richcompare()
Typo catched by Serhiy Storchaka, thanks!
This commit is contained in:
parent
3a5d79fbc8
commit
e670b2d5c3
|
@ -2688,7 +2688,7 @@ pattern_richcompare(PyObject *lefto, PyObject *righto, int op)
|
||||||
|
|
||||||
cmp = (left->flags == right->flags
|
cmp = (left->flags == right->flags
|
||||||
&& left->isbytes == right->isbytes
|
&& left->isbytes == right->isbytes
|
||||||
&& left->codesize && right->codesize);
|
&& left->codesize == right->codesize);
|
||||||
if (cmp) {
|
if (cmp) {
|
||||||
/* Compare the code and the pattern because the same pattern can
|
/* Compare the code and the pattern because the same pattern can
|
||||||
produce different codes depending on the locale used to compile the
|
produce different codes depending on the locale used to compile the
|
||||||
|
|
Loading…
Reference in New Issue