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:
Damien George
2015-01-30 00:27:46 +00:00
parent 3da677e658
commit 32bade19d9
3 changed files with 33 additions and 23 deletions

View 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"""))