mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
Remove double negative
This commit is contained in:
parent
611eaf0e66
commit
0e94189e1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue