diff --git a/uncompyle6/semantics/transform.py b/uncompyle6/semantics/transform.py index 850149c6..5ae3ef5e 100644 --- a/uncompyle6/semantics/transform.py +++ b/uncompyle6/semantics/transform.py @@ -139,13 +139,16 @@ class TreeTransform(GenericASTTraversal, object): and 1 <= len(testtrue_or_false) <= 2 and raise_stmt.first_child().pattr == "AssertionError" ): - if testtrue_or_false == "testtrue": + if testtrue_or_false in ("testtrue", "testtruel"): # Skip over the testtrue because because it would # produce a "not" and we don't want that here. assert_expr = testtrue_or_false[0] jump_cond = NoneToken else: - assert testtrue_or_false == "testfalse" + try: + assert testtrue_or_false in ("testfalse", "testfalsel") + except: + from trepan.api import debug; debug() assert_expr = testtrue_or_false[0] if assert_expr == "testfalse_not_and": # FIXME: come pack to stuff like this