Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a7d376

Browse files
committed
Use logic operator, not bitwise operator, for conditional.
1 parent 9cc7d45 commit 9a7d376

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_csv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ parse_process_char(ReaderObj *self, Py_UCS4 c)
644644
break;
645645

646646
case ESCAPED_CHAR:
647-
if (c == '\n' | c=='\r') {
647+
if (c == '\n' || c=='\r') {
648648
if (parse_add_char(self, c) < 0)
649649
return -1;
650650
self->state = AFTER_ESCAPED_CRNL;

0 commit comments

Comments
 (0)