summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-04-12 20:24:26 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-04-12 20:24:26 (GMT)
commit614e87f2866173475bc01ffddcd8b9fbcc690b36 (patch)
treed29cb97c3226b0e7d8b7ed540327031321262d54 /Tools
parent542b11acfd5309438ed2769be1fc476b9597f1fb (diff)
downloadcpython-614e87f2866173475bc01ffddcd8b9fbcc690b36.zip
cpython-614e87f2866173475bc01ffddcd8b9fbcc690b36.tar.gz
cpython-614e87f2866173475bc01ffddcd8b9fbcc690b36.tar.bz2
Add support for visitAssAttr to findOp().
Diffstat (limited to 'Tools')
-rw-r--r--Tools/compiler/compiler/pycodegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/compiler/compiler/pycodegen.py b/Tools/compiler/compiler/pycodegen.py
index 63b0a57..e67b2ef 100644
--- a/Tools/compiler/compiler/pycodegen.py
+++ b/Tools/compiler/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