[Python-checkins] CVS: python/dist/src/Tools/compiler/compiler transformer.py,1.20,1.21

Jeremy Hylton jhylton@users.sourceforge.net
Wed, 11 Apr 2001 09:22:28 -0700


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

Modified Files:
	transformer.py 
Log Message:
Add lineno attributes to Discard nodes


Index: transformer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/compiler/transformer.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** transformer.py	2001/04/09 04:27:12	1.20
--- transformer.py	2001/04/11 16:22:26	1.21
***************
*** 273,277 ****
          exprNode = self.com_node(nodelist[-1])
          if len(nodelist) == 1:
!             return Discard(exprNode)
          if nodelist[1][0] == token.EQUAL:
              nodes = []
--- 273,279 ----
          exprNode = self.com_node(nodelist[-1])
          if len(nodelist) == 1:
!             n = Discard(exprNode)
!             n.lineno = exprNode.lineno
!             return n
          if nodelist[1][0] == token.EQUAL:
              nodes = []