mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-02-19 20:53:01 +00:00
Reinstate 3.5 tests
This commit is contained in:
parent
c99cf7a653
commit
e2baccb4e5
@ -8,6 +8,9 @@ def or_check(self, lhs, n, rule, ast, tokens, first, last):
|
||||
# for t in range(first, last): print(tokens[t])
|
||||
# print("="*40)
|
||||
|
||||
if (first, last) == (2, 6):
|
||||
from trepan.api import debug; debug()
|
||||
|
||||
if rhs[0:2] in (("expr_jt", "expr"),
|
||||
("expr_jitop", "expr"),
|
||||
("expr_jit", "expr")):
|
||||
@ -45,7 +48,7 @@ def or_check(self, lhs, n, rule, ast, tokens, first, last):
|
||||
return True
|
||||
|
||||
# If the jmp is backwards
|
||||
if last_token == "POP_JUMP_IF_FALSE" and self.version != 2.7:
|
||||
if last_token == "POP_JUMP_IF_FALSE" and not self.version in (2.7, 3.5):
|
||||
if last_token.attr < last_token_offset:
|
||||
# For a backwards loop, well compare to the instruction *after*
|
||||
# then POP_JUMP...
|
||||
|
Loading…
x
Reference in New Issue
Block a user