Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix handling of repeated NEWLINE tokens #12057
Because of cpython's issue 37621 it is possible that tokenizer will emit repeated NEWLINE tokens despite that language specification states it should never happen.
Currently IPython doesn't handle such situation well, e.g.
In : def f(): ...: x = 0 ...: \ ...:
This PR attempts to fix this issue.