Remove double negative
diff --git a/Modules/_textio.c b/Modules/_textio.c
index dbed2fd..c70b1dd 100644
--- a/Modules/_textio.c
+++ b/Modules/_textio.c
@@ -305,7 +305,7 @@
            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) {