[Python-checkins] CVS: python/dist/src/Tools/compiler/compiler pycodegen.py,1.36,1.37

Jeremy Hylton jhylton@users.sourceforge.net
Thu, 12 Apr 2001 13:24:28 -0700


Update of /cvsroot/python/python/dist/src/Tools/compiler/compiler
In directory usw-pr-cvs1:/tmp/cvs-serv7770/compiler

Modified Files:
	pycodegen.py 
Log Message:
Add support for visitAssAttr to findOp().


Index: pycodegen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/compiler/pycodegen.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -r1.36 -r1.37
*** pycodegen.py	2001/04/12 20:21:39	1.36
--- pycodegen.py	2001/04/12 20:24:26	1.37
***************
*** 670,674 ****
  
      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))
--- 670,673 ----
***************
*** 1208,1211 ****
--- 1207,1211 ----
          elif self.op != node.flags:
              raise ValueError, "mixed ops in stmt"
+     visitAssAttr = visitAssName
  
  class Delegator: