You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Bug introduced by last commit
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user