diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-02-28 17:48:48 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-02-28 17:48:48 (GMT) |
commit | 51e234aa68697decbd360240bc68fb439f522951 (patch) | |
tree | d51bcab3c5f352c440d9fede2a18187b812707a6 /Lib/compiler/transformer.py | |
parent | 1c63f6e48913f71968509ccf5708034f4ff09cf5 (diff) | |
download | cpython-51e234aa68697decbd360240bc68fb439f522951.zip cpython-51e234aa68697decbd360240bc68fb439f522951.tar.gz cpython-51e234aa68697decbd360240bc68fb439f522951.tar.bz2 |
Patch #522279: transformer.py nodes shadows global.
Diffstat (limited to 'Lib/compiler/transformer.py')
-rw-r--r-- | Lib/compiler/transformer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index cd36aae..b05d3a8 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py @@ -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]) |