Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support empty lines on the repl #1313

Merged
merged 1 commit into from
Aug 1, 2016
Merged

Support empty lines on the repl #1313

merged 1 commit into from
Aug 1, 2016

Conversation

kmod
Copy link
Collaborator

@kmod kmod commented Aug 1, 2016

They end up generating "pass" statements with a lineno of 0, which
trips an assert later on. This commit just sets them to have a lineno
of 1.

They end up generating "pass" statements with a lineno of 0, which
trips an assert later on.  This commit just sets them to have a lineno
of 1.

I'm not sure how to test this, since piping into stdin is supposed to
be treated as a file (not as the repl).  Though, we get that wrong right now.
@kmod kmod merged commit 586a8c6 into pyston:master Aug 1, 2016
@kmod kmod deleted the repl_empty branch January 17, 2017 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant