]> granicus.if.org Git - python/commitdiff
Patch #522279: transformer.py nodes shadows global.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 28 Feb 2002 17:48:48 +0000 (17:48 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 28 Feb 2002 17:48:48 +0000 (17:48 +0000)
Lib/compiler/transformer.py

index cd36aaeac9a137bff762f5e5a29ecb45f723f09d..b05d3a83217b3cd3b5f1275d37f8dd01863bb203 100644 (file)
@@ -292,10 +292,10 @@ class Transformer:
             n.lineno = exprNode.lineno
             return n
         if nodelist[1][0] == token.EQUAL:
-            nodes = []
+            nodesl = []
             for i in range(0, len(nodelist) - 2, 2):
-                nodes.append(self.com_assign(nodelist[i], OP_ASSIGN))
-            n = Assign(nodes, exprNode)
+                nodesl.append(self.com_assign(nodelist[i], OP_ASSIGN))
+            n = Assign(nodesl, exprNode)
             n.lineno = nodelist[1][2]
         else:
             lval = self.com_augassign(nodelist[0])