Commits

Antoine Pitrou  committed f5b81be

Remove double negative

  • Participants
  • Parent commits aef5cfe

Comments (0)

Files changed (1)

File Modules/_textio.c

            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) {