mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Patch #522279: transformer.py nodes shadows global.
This commit is contained in:
parent
1c63f6e489
commit
51e234aa68
1 changed files with 3 additions and 3 deletions
|
@ -292,10 +292,10 @@ class Transformer:
|
||||||
n.lineno = exprNode.lineno
|
n.lineno = exprNode.lineno
|
||||||
return n
|
return n
|
||||||
if nodelist[1][0] == token.EQUAL:
|
if nodelist[1][0] == token.EQUAL:
|
||||||
nodes = []
|
nodesl = []
|
||||||
for i in range(0, len(nodelist) - 2, 2):
|
for i in range(0, len(nodelist) - 2, 2):
|
||||||
nodes.append(self.com_assign(nodelist[i], OP_ASSIGN))
|
nodesl.append(self.com_assign(nodelist[i], OP_ASSIGN))
|
||||||
n = Assign(nodes, exprNode)
|
n = Assign(nodesl, exprNode)
|
||||||
n.lineno = nodelist[1][2]
|
n.lineno = nodelist[1][2]
|
||||||
else:
|
else:
|
||||||
lval = self.com_augassign(nodelist[0])
|
lval = self.com_augassign(nodelist[0])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue