Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
586a8c6e
Commit
586a8c6e
authored
Aug 01, 2016
by
Kevin Modzelewski
Committed by
GitHub
Aug 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1313 from kmod/repl_empty
Support empty lines on the repl
parents
27410967
b80e9dca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/codegen/cpython_ast.cpp
src/codegen/cpython_ast.cpp
+7
-0
No files found.
src/codegen/cpython_ast.cpp
View file @
586a8c6e
...
...
@@ -710,6 +710,13 @@ public:
auto
r
=
_convert
(
stmt
);
r
->
lineno
=
stmt
->
lineno
;
r
->
col_offset
=
stmt
->
col_offset
;
if
(
stmt
->
lineno
==
0
)
{
// So far it looks like these can only be generated for empty lines on the repl
assert
(
stmt
->
kind
==
Pass_kind
);
r
->
lineno
=
1
;
}
return
r
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment