]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove double negative
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 6 Mar 2009 23:57:20 +0000 (23:57 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 6 Mar 2009 23:57:20 +0000 (23:57 +0000)
Modules/_textio.c

index dbed2fdc55b09fa491b74692a18e2888a5d406e3..c70b1dd55b4fa194554649b7508863ad4aeb36de 100644 (file)
@@ -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) {