From 0e94189e1b271b8d986a0d7804a2c87bf44ea320 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Fri, 6 Mar 2009 23:57:20 +0000 Subject: [PATCH] Remove double negative --- Modules/_textio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_textio.c b/Modules/_textio.c index dbed2fdc55..c70b1dd55b 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) { -- 2.50.1