Cope more JUMP/POP_IF not being in 3.0...

more is probably needed though.
This commit is contained in:
rocky
2019-11-11 19:58:35 -05:00
parent 4abdffecb9
commit 9f250b49ee
4 changed files with 30 additions and 5 deletions

View File

@@ -182,9 +182,13 @@ def customize_for_version3(self, version):
# 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%-',
'ifstmt30': ( "%|if %c:\n%+%c%-",
(0, "testexpr_then"),
(1, "_ifstmts_jump30") ),
"or30": ( "%c or %c",
(0, "expr"),
(4, "expr") ),
})
def n_comp_iter(node):