[Python-checkins] CVS: /python/nondist/src/Compiler/p2c transformer.py,1.5,1.6

Jeremy Hylton jhylton@cnri.reston.va.us
Tue, 15 Feb 2000 18:43:22 -0500


Update of /projects/cvsroot//python/nondist/src/Compiler/p2c
In directory goon.cnri.reston.va.us:/home/jhylton/python/nondist/src/Compiler/p2c

Modified Files:
	transformer.py 
Log Message:
fix creation of Ellipsis node


Index: transformer.py
===================================================================
RCS file: /projects/cvsroot//python/nondist/src/Compiler/p2c/transformer.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** transformer.py	2000/02/15 21:30:48	1.5
--- transformer.py	2000/02/15 23:43:19	1.6
***************
*** 1022,1026 ****
      ch = node[1]
      if ch[0] == token.DOT and node[2][0] == token.DOT:
!       return ('ellipsis', None)
      if ch[0] == token.COLON or len(node) > 2:
        return self.com_sliceobj(node)
--- 1022,1026 ----
      ch = node[1]
      if ch[0] == token.DOT and node[2][0] == token.DOT:
!       return Node('ellipsis')
      if ch[0] == token.COLON or len(node) > 2:
        return self.com_sliceobj(node)