From: Antoine Pitrou Date: Fri, 6 Mar 2009 23:57:20 +0000 (+0000) Subject: Remove double negative X-Git-Tag: v3.1a1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e94189e1b271b8d986a0d7804a2c87bf44ea320;p=thirdparty%2FPython%2Fcpython.git Remove double negative --- diff --git a/Modules/_textio.c b/Modules/_textio.c index dbed2fdc55b0..c70b1dd55b4f 100644 --- a/Modules/_textio.c +++ b/Modules/_textio.c @@ -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) {