common.py | raw changeset files shortlog | trailing-data |
1.1 --- a/common.py Mon May 20 01:00:32 2024 +0200 1.2 +++ b/common.py Tue May 21 12:59:53 2024 +0200 1.3 @@ -381,6 +381,8 @@ 1.4 target = compiler.ast.AssAttr(n.node.expr, n.node.attrname, "OP_ASSIGN") 1.5 elif isinstance(n.node, compiler.ast.Name): 1.6 target = compiler.ast.AssName(n.node.name, "OP_ASSIGN") 1.7 + elif isinstance(n.node, compiler.ast.Subscript): 1.8 + target = compiler.ast.Subscript(n.node.expr, "OP_ASSIGN", n.node.subs) 1.9 else: 1.10 target = n.node 1.11