From 9aae8f85c78efa720de79c0cf75c456b6744d133 Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 2 Feb 2020 13:11:03 -0500 Subject: [PATCH] Bug introduced by last commit --- uncompyle6/semantics/pysource.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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]