1
0
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:
Dave Halter
2015-03-05 01:55:25 +01:00
parent 5d54922c4b
commit b489019f5b
4 changed files with 29 additions and 26 deletions

View File

@@ -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: