Commit 0e94189e authored by Antoine Pitrou's avatar Antoine Pitrou

Remove double negative

parent 611eaf0e
......@@ -305,7 +305,7 @@ _PyIncrementalNewlineDecoder_decode(PyObject *_self,
for the \r *byte* with the libc's optimized memchr.
*/
if (seennl == SEEN_LF || seennl == 0) {
only_lf = !(memchr(in_str, '\r', len * sizeof(Py_UNICODE)) != NULL);
only_lf = (memchr(in_str, '\r', len * sizeof(Py_UNICODE)) == NULL);
}
if (only_lf) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment