More Python 3.0 custom "if" statment handling.

This commit is contained in:
rocky
2019-11-10 18:44:43 -05:00
parent 04c2240d63
commit 07ec8fa1fb
4 changed files with 36 additions and 2 deletions

View File

@@ -181,6 +181,12 @@ def customize_for_version3(self, version):
# the iteration variable. These rules we can ignore
# since we pick up the iteration variable some other way and
# we definitely don't include in the source _[dd].
TABLE_DIRECT.update({
'ifstmt30': ( '%|if %c:\n%+%c%-',
(0, "testexpr_then"),
(1, "_ifstmts_jump30") ),
})
def n_comp_iter(node):
if node[0] == "expr":
n = node[0][0]