mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
Add support for visitAssAttr to findOp().
This commit is contained in:
parent
542b11acfd
commit
614e87f286
2 changed files with 2 additions and 2 deletions
|
@ -669,7 +669,6 @@ class CodeGenerator:
|
|||
print node
|
||||
|
||||
def _visitAssSequence(self, node, op='UNPACK_SEQUENCE'):
|
||||
## print >> sys.stderr, "AssSequence", op, findOp(node), node
|
||||
if findOp(node) != 'OP_DELETE':
|
||||
self.emit(op, len(node.nodes))
|
||||
for child in node.nodes:
|
||||
|
@ -1207,6 +1206,7 @@ class OpFinder:
|
|||
self.op = node.flags
|
||||
elif self.op != node.flags:
|
||||
raise ValueError, "mixed ops in stmt"
|
||||
visitAssAttr = visitAssName
|
||||
|
||||
class Delegator:
|
||||
"""Base class to support delegation for augmented assignment nodes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue