mirror of https://github.com/python/cpython
Use logic operator, not bitwise operator, for conditional.
This commit is contained in:
parent
9cc7d45571
commit
9a7d3768a3
|
@ -644,7 +644,7 @@ parse_process_char(ReaderObj *self, Py_UCS4 c)
|
|||
break;
|
||||
|
||||
case ESCAPED_CHAR:
|
||||
if (c == '\n' | c=='\r') {
|
||||
if (c == '\n' || c=='\r') {
|
||||
if (parse_add_char(self, c) < 0)
|
||||
return -1;
|
||||
self->state = AFTER_ESCAPED_CRNL;
|
||||
|
|
Loading…
Reference in New Issue