diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-03-20 04:15:20 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-03-20 04:15:20 (GMT) |
commit | 9a7d3768a3458031c8df2de0250ba7d1dfa6a391 (patch) | |
tree | eaccce4c043e7fe64090e8f8adf16e751e2bc3a9 /Modules | |
parent | 9cc7d455718456dd88daf829c29bec9527530b11 (diff) | |
download | cpython-9a7d3768a3458031c8df2de0250ba7d1dfa6a391.zip cpython-9a7d3768a3458031c8df2de0250ba7d1dfa6a391.tar.gz cpython-9a7d3768a3458031c8df2de0250ba7d1dfa6a391.tar.bz2 |
Use logic operator, not bitwise operator, for conditional.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_csv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c index 39f9d7d..22ac266 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; |