Handle PyPy BUILD_MAP_0 where actual kw_args > 0

This commit is contained in:
rocky
2016-07-25 17:50:19 -04:00
parent 8cfecff9c4
commit 281f429223
3 changed files with 14 additions and 4 deletions

View File

@@ -69,7 +69,9 @@ class PythonParser(GenericASTBuilder):
return token.type
def nonterminal(self, nt, args):
collect = ('stmts', 'exprlist', 'kvlist', '_stmts', 'print_items', 'kwargs')
collect = ('stmts', 'exprlist', 'kvlist', '_stmts', 'print_items', 'kwargs',
# PYPY:
'kvlist_n')
if nt in collect and len(args) > 1:
#