\\\r\n is as possible as \\\n.

This commit is contained in:
Dave Halter
2015-04-28 18:53:14 +02:00
parent 712ae01ac0
commit 66557903ae
2 changed files with 7 additions and 1 deletions

View File

@@ -272,7 +272,7 @@ def generate_tokens(readline):
indents.append(indent)
break
yield NAME, token, spos, prefix
elif initial == '\\' and line[start:] == '\\\n': # continued stmt
elif initial == '\\' and line[start:] in ('\\\n', '\\\r\n'): # continued stmt
additional_prefix += prefix + line[start:]
break
else: