Use logic operator, not bitwise operator, for conditional.

This commit is contained in:
R David Murray 2013-03-20 00:15:20 -04:00
parent 9cc7d45571
commit 9a7d3768a3
1 changed files with 1 additions and 1 deletions

View File

@ -644,7 +644,7 @@ parse_process_char(ReaderObj *self, Py_UCS4 c)
break; break;
case ESCAPED_CHAR: case ESCAPED_CHAR:
if (c == '\n' | c=='\r') { if (c == '\n' || c=='\r') {
if (parse_add_char(self, c) < 0) if (parse_add_char(self, c) < 0)
return -1; return -1;
self->state = AFTER_ESCAPED_CRNL; self->state = AFTER_ESCAPED_CRNL;