diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-06 23:57:20 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-06 23:57:20 (GMT) |
commit | 0e94189e1b271b8d986a0d7804a2c87bf44ea320 (patch) | |
tree | 6487bb99cc936a5f5a4edca9f858e99c242efd9d /Modules | |
parent | 611eaf0e66bfd00d2ee9e25d4ae9648c9dc2f600 (diff) | |
download | cpython-0e94189e1b271b8d986a0d7804a2c87bf44ea320.zip cpython-0e94189e1b271b8d986a0d7804a2c87bf44ea320.tar.gz cpython-0e94189e1b271b8d986a0d7804a2c87bf44ea320.tar.bz2 |
Remove double negative
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_textio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ _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) { |