diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-04-12 20:24:26 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-04-12 20:24:26 (GMT) |
commit | 614e87f2866173475bc01ffddcd8b9fbcc690b36 (patch) | |
tree | d29cb97c3226b0e7d8b7ed540327031321262d54 /Lib | |
parent | 542b11acfd5309438ed2769be1fc476b9597f1fb (diff) | |
download | cpython-614e87f2866173475bc01ffddcd8b9fbcc690b36.zip cpython-614e87f2866173475bc01ffddcd8b9fbcc690b36.tar.gz cpython-614e87f2866173475bc01ffddcd8b9fbcc690b36.tar.bz2 |
Add support for visitAssAttr to findOp().
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/compiler/pycodegen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py index 63b0a57..e67b2ef 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 |