gh-153568: Skip newline translation for source without carriage retur… · python/cpython@0d6671d · GitHub
Skip to content

Commit 0d6671d

Browse files
authored
gh-153568: Skip newline translation for source without carriage returns (#153584)
The tokenizer copied every input byte by byte to normalize newlines, but source without a carriage return needs no translation and can be copied verbatim.
1 parent f88d668 commit 0d6671d

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

Lines changed: 2 additions & 0 deletions

Parser/tokenizer/decoder.c

Lines changed: 14 additions & 7 deletions

0 commit comments

Comments
 (0)