mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +01:00
py: Convert CR to LF and CR LF to LF in lexer.
Only noticeable difference is how newlines are encoded in triple-quoted strings. The behaviour now matches CPython3.
This commit is contained in:
4
tests/basics/string_crlf_conversion.py
Normal file
4
tests/basics/string_crlf_conversion.py
Normal file
@@ -0,0 +1,4 @@
|
||||
# this file has CRLF line endings to test lexer's conversion of them to LF
|
||||
# in triple quoted strings
|
||||
print(repr("""abc
|
||||
def"""))
|
||||
Reference in New Issue
Block a user