[Python-checkins] CVS: python/nondist/src/Compiler/compiler transformer.py,1.11,1.12

Jeremy Hylton python-dev@python.org
Fri, 4 Aug 2000 09:54:57 -0700


Update of /cvsroot/python/python/nondist/src/Compiler/compiler
In directory slayer.i.sourceforge.net:/tmp/cvs-serv1877

Modified Files:
	transformer.py 
Log Message:
update my email address
fix com_call_function to cope with trailing comma in "f(a, b,)"


Index: transformer.py
===================================================================
RCS file: /cvsroot/python/python/nondist/src/Compiler/compiler/transformer.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** transformer.py	2000/08/03 17:39:13	1.11
--- transformer.py	2000/08/04 16:54:54	1.12
***************
*** 12,16 ****
  #
  # Support for ast.Node subclasses written and other revisions by
! #  Jeremy Hylton (jeremy@cnri.reston.va.us)
  #
  
--- 12,16 ----
  #
  # Support for ast.Node subclasses written and other revisions by
! #  Jeremy Hylton (jeremy@beopen.com)
  #
  
***************
*** 1002,1005 ****
--- 1002,1008 ----
      else:
          i = i + 1 # No broken by star arg, so skip the last one we processed.
+     if i < len_nodelist and nodelist[i][0] == token.COMMA:
+         # need to accept an application that looks like "f(a, b,)"
+         i = i + 1
      star_node = dstar_node = None
      while i < len_nodelist: