diff --git a/uncompyle6/semantics/pysource.py b/uncompyle6/semantics/pysource.py index 30e6fb73..81ac328d 100644 --- a/uncompyle6/semantics/pysource.py +++ b/uncompyle6/semantics/pysource.py @@ -2236,8 +2236,10 @@ class SourceWalker(GenericASTTraversal, object): assert ast == "stmts" for i in range(len(ast)): # search for an assign-statement - assert ast[i] == "sstmt" - node = ast[i][0] + if ast[i] == "sstmt": + node = ast[i][0] + else: + node = ast[i] if node == "assign" and node[0] == ASSIGN_TUPLE_PARAM(name): # okay, this assigns '.n' to something del ast[i]