From 9a7d3768a3458031c8df2de0250ba7d1dfa6a391 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Wed, 20 Mar 2013 00:15:20 -0400 Subject: [PATCH] Use logic operator, not bitwise operator, for conditional. --- Modules/_csv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_csv.c b/Modules/_csv.c index 39f9d7d377e..22ac2667ff0 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -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;