Fix bug in return-optimized try stmt

This commit is contained in:
rocky
2017-11-09 11:01:29 -05:00
parent b9dfba7400
commit 74731a9d42
3 changed files with 11 additions and 0 deletions

View File

@@ -418,6 +418,11 @@ class SourceWalker(GenericASTTraversal, object):
# 'unmapexpr': ( '{**%c}', 0), # done by n_unmapexpr
})
if version >= 3.6:
TABLE_DIRECT.update({
'trystmt36': ( '%|try:\n%+%c%-%c\n\n', 1, 2 ),
})
def n_async_call_function(node):
self.f.write('async ')
node.kind == 'call_function'