Most integration tests (except 2) pass if we don't always make the use of an ExprStmt.
This commit is contained in:
1 parent
5d54922c4b
commit
b489019f5b
4 files changed
+29
-26
No files matched your search
@@ -190,7 +190,7 @@ class PgenParser(object):
|
||||
# If there's exactly one child, return that child instead of creating a
|
||||
# new node. We still create expr_stmt and file_input though, because a
|
||||
# lot of Jedi depends on its logic.
|
||||
if len(children) != 1 or type in (self.grammar.symbol2number['expr_stmt'],
|
||||
if len(children) != 1 or type in (-1,
|
||||
self.grammar.symbol2number['file_input']):
|
||||
newnode = self.convert_node(self.grammar, type, children)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user