diff --git a/uncompyle6/parsers/parse3.py b/uncompyle6/parsers/parse3.py index f3ca7d11..64afd030 100644 --- a/uncompyle6/parsers/parse3.py +++ b/uncompyle6/parsers/parse3.py @@ -1625,8 +1625,6 @@ class Python3Parser(PythonParser): elif lhs == "kwarg": arg = tokens[first].attr return not (isinstance(arg, str) or isinstance(arg, unicode)) - elif lhs in ("iflaststmt", "iflaststmtl") and self.version[:2] == (3, 6): - return ifstmt(self, lhs, n, rule, ast, tokens, first, last) elif rule == ("ifstmt", ("testexpr", "_ifstmts_jump")): # FIXME: go over what's up with 3.0. Evetually I'd like to remove RETURN_END_IF if self.version <= (3, 0) or tokens[last] == "RETURN_END_IF": diff --git a/uncompyle6/parsers/reducecheck/iflaststmt.py b/uncompyle6/parsers/reducecheck/iflaststmt.py index 3fc778d3..0118672e 100644 --- a/uncompyle6/parsers/reducecheck/iflaststmt.py +++ b/uncompyle6/parsers/reducecheck/iflaststmt.py @@ -18,6 +18,10 @@ def iflaststmt( ) -> bool: testexpr = tree[0] + # print("XXX", first, last, rule) + # for t in range(first, last): print(tokens[t]) + # print("="*40) + if testexpr[0] in ("testtrue", "testfalse"): test = testexpr[0]