forked from VimPlug/jedi
Most integration tests (except 2) pass if we don't always make the use of an ExprStmt.
This commit is contained in:
@@ -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