summaryrefslogtreecommitdiff
path: root/Lib/compiler
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-04-12 20:24:26 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2001-04-12 20:24:26 +0000
commitbfc037883ef0222a321d653f86e0ab291a21bfda (patch)
treec5c6c41b5f81dedd7908c7adbaef64a72da01281 /Lib/compiler
parent2899457af64bac6b90e7a2b4747006a67be8d359 (diff)
downloadcpython-bfc037883ef0222a321d653f86e0ab291a21bfda.tar.gz
Add support for visitAssAttr to findOp().
Diffstat (limited to 'Lib/compiler')
-rw-r--r--Lib/compiler/pycodegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py
index 63b0a57a99..e67b2ef1ed 100644
--- a/Lib/compiler/pycodegen.py
+++ b/Lib/compiler/pycodegen.py
@@ -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