From 45c725feae3868606d069d5a1702c11e0d9aee28 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 1 Feb 2020 11:20:58 -0500 Subject: [PATCH] 3.6 iflaststmtl doesn't follow ifstmt rules... like iflaststmt does. test_dbm_dumb.py shows this --- uncompyle6/parsers/parse3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncompyle6/parsers/parse3.py b/uncompyle6/parsers/parse3.py index 92739e65..8d42b3b2 100644 --- a/uncompyle6/parsers/parse3.py +++ b/uncompyle6/parsers/parse3.py @@ -1584,7 +1584,7 @@ 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 == 3.6: + elif lhs == "iflaststmt" and self.version == 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