Grammar rule for 3.6 with .. return

This commit is contained in:
rocky
2017-12-15 08:24:52 -05:00
parent 3b0eb017b6
commit b736e0a0e2
3 changed files with 4 additions and 2 deletions

View File

@@ -628,8 +628,8 @@ class SourceWalker(GenericASTTraversal, object):
assert tup == 'tuple'
self.call36_tuple(tup)
expr = node[2]
assert expr == 'expr'
if tup[0].attr > 0:
if len(tup) > 0:
# if tup[0].attr > 0:
self.write(', ')
self.write('**')
self.preorder(expr)