summaryrefslogtreecommitdiff
path: root/tests/basics/string_cr_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_cr_conversion.py
parent3da677e65868e6bcdefa6e663c327eaa037050ff (diff)
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_cr_conversion.py')
-rw-r--r--tests/basics/string_cr_conversion.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/basics/string_cr_conversion.py b/tests/basics/string_cr_conversion.py
new file mode 100644
index 000000000..0c3ba16b8
--- /dev/null
+++ b/tests/basics/string_cr_conversion.py
@@ -0,0 +1 @@
+# this file has CR line endings to test lexer's conversion of them to LF # in triple quoted strings print(repr("""abc def""")) \ No newline at end of file