diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-30 00:27:46 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-30 00:27:46 +0000 |
commit | 32bade19d952c23c2fd499050abb17cb80dc7559 (patch) | |
tree | 23ffea7cbfd5e00ab9bf4e64c09f5a7a43d67026 /tests/basics/string_crlf_conversion.py | |
parent | 3da677e65868e6bcdefa6e663c327eaa037050ff (diff) | |
download | micropython-32bade19d952c23c2fd499050abb17cb80dc7559.tar.gz micropython-32bade19d952c23c2fd499050abb17cb80dc7559.zip |
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.
Diffstat (limited to 'tests/basics/string_crlf_conversion.py')
-rw-r--r-- | tests/basics/string_crlf_conversion.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/string_crlf_conversion.py b/tests/basics/string_crlf_conversion.py new file mode 100644 index 0000000000..f911210992 --- /dev/null +++ b/tests/basics/string_crlf_conversion.py @@ -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"""))
|