summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/string_crlf_conversion.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-30 00:27:46 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-30 00:27:46 +0000
commit32bade19d952c23c2fd499050abb17cb80dc7559 (patch)
tree23ffea7cbfd5e00ab9bf4e64c09f5a7a43d67026 /tests/basics/string_crlf_conversion.py
parent3da677e65868e6bcdefa6e663c327eaa037050ff (diff)
downloadmicropython-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.py4
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"""))