commit | 0e94189e1b271b8d986a0d7804a2c87bf44ea320 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Fri Mar 06 23:57:20 2009 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Fri Mar 06 23:57:20 2009 +0000 |
tree | 6487bb99cc936a5f5a4edca9f858e99c242efd9d | |
parent | 611eaf0e66bfd00d2ee9e25d4ae9648c9dc2f600 [diff] [blame] |
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) {