Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 611eaf0 commit 0e94189Copy full SHA for 0e94189
1 file changed
Modules/_textio.c
@@ -305,7 +305,7 @@ _PyIncrementalNewlineDecoder_decode(PyObject *_self,
305
for the \r *byte* with the libc's optimized memchr.
306
*/
307
if (seennl == SEEN_LF || seennl == 0) {
308
- only_lf = !(memchr(in_str, '\r', len * sizeof(Py_UNICODE)) != NULL);
+ only_lf = (memchr(in_str, '\r', len * sizeof(Py_UNICODE)) == NULL);
309
}
310
311
if (only_lf) {
0 commit comments