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

Jeremy Hylton jhylton@users.sourceforge.net
Mon, 27 Aug 2001 14:58:11 -0700


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

Modified Files:
	pycodegen.py 
Log Message:
emit SET_LINENO for augmented assignments


Index: pycodegen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/compiler/pycodegen.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** pycodegen.py	2001/08/27 21:51:52	1.40
--- pycodegen.py	2001/08/27 21:58:09	1.41
***************
*** 118,121 ****
--- 118,124 ----
      return 0
  
+ def mangle(name):
+     return name
+ 
  class CodeGenerator:
      """Defines basic code generator for Python bytecode
***************
*** 695,698 ****
--- 698,702 ----
  
      def visitAugAssign(self, node):
+         self.set_lineno(node)
          aug_node = wrap_aug(node.node)
          self.visit(aug_node, "load")