You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Adjust a couple of "assert"s
This commit is contained in:
@@ -139,13 +139,16 @@ class TreeTransform(GenericASTTraversal, object):
|
|||||||
and 1 <= len(testtrue_or_false) <= 2
|
and 1 <= len(testtrue_or_false) <= 2
|
||||||
and raise_stmt.first_child().pattr == "AssertionError"
|
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
|
# Skip over the testtrue because because it would
|
||||||
# produce a "not" and we don't want that here.
|
# produce a "not" and we don't want that here.
|
||||||
assert_expr = testtrue_or_false[0]
|
assert_expr = testtrue_or_false[0]
|
||||||
jump_cond = NoneToken
|
jump_cond = NoneToken
|
||||||
else:
|
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]
|
assert_expr = testtrue_or_false[0]
|
||||||
if assert_expr == "testfalse_not_and":
|
if assert_expr == "testfalse_not_and":
|
||||||
# FIXME: come pack to stuff like this
|
# FIXME: come pack to stuff like this
|
||||||
|
Reference in New Issue
Block a user