More 2.7 compatibility

This commit is contained in:
rocky
2020-01-09 01:34:41 -05:00
parent 30d8830957
commit 086ceaf176
3 changed files with 3 additions and 9 deletions

View File

@@ -3,9 +3,7 @@
from uncompyle6.scanners.tok import Token from uncompyle6.scanners.tok import Token
def ifstmts_jump( def ifstmts_jump(self, lhs, n, rule, ast, tokens, first, last):
self, lhs, n, rule, ast, tokens, first, last
) -> bool:
come_froms = ast[-1] come_froms = ast[-1]
# Make sure all of the "come froms" offset at the # Make sure all of the "come froms" offset at the
# end of the "if" come from somewhere inside the "if". # end of the "if" come from somewhere inside the "if".

View File

@@ -1,9 +1,7 @@
# Copyright (c) 2020 Rocky Bernstein # Copyright (c) 2020 Rocky Bernstein
def while1elsestmt( def while1elsestmt(self, lhs, n, rule, ast, tokens, first, last):
self, lhs, n, rule, ast, tokens, first, last
) -> bool:
if last == n: if last == n:
# Adjust for fuzziness in parsing # Adjust for fuzziness in parsing
last -= 1 last -= 1

View File

@@ -1,9 +1,7 @@
# Copyright (c) 2020 Rocky Bernstein # Copyright (c) 2020 Rocky Bernstein
def while1stmt( def while1stmt(self, lhs, n, rule, ast, tokens, first, last:
self, lhs, n, rule, ast, tokens, first, last
) -> bool:
# If there is a fall through to the COME_FROM_LOOP, then this is # If there is a fall through to the COME_FROM_LOOP, then this is
# not a while 1. So the instruction before should either be a # not a while 1. So the instruction before should either be a