[Python-checkins] python/dist/src/Tools/compiler astgen.py, 1.6, 1.7 compile.py, 1.7, 1.8 demo.py, 1.1, 1.2

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sun Jul 18 08:02:36 CEST 2004


Update of /cvsroot/python/python/dist/src/Tools/compiler
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29862/compiler

Modified Files:
	astgen.py compile.py demo.py 
Log Message:
Whitespace normalization, via reindent.py.


Index: astgen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/astgen.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** astgen.py	17 Sep 2001 20:16:30 -0000	1.6
--- astgen.py	18 Jul 2004 06:02:02 -0000	1.7
***************
*** 89,93 ****
              self.args = self.args.replace('!', '')
              self.args = self.args.replace('&', '')
!         
          return d
  
--- 89,93 ----
              self.args = self.args.replace('!', '')
              self.args = self.args.replace('&', '')
! 
          return d
  
***************
*** 159,163 ****
                  for name in self.argnames:
                      if self.argprops[name] == P_NONE:
!                         tmp = ("        if self.%s is not None:" 
                                 "            nodes.append(self.%s)")
                          print >> buf, tmp % (name, name)
--- 159,163 ----
                  for name in self.argnames:
                      if self.argprops[name] == P_NONE:
!                         tmp = ("        if self.%s is not None:"
                                 "            nodes.append(self.%s)")
                          print >> buf, tmp % (name, name)

Index: compile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/compile.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** compile.py	12 Feb 2004 17:35:14 -0000	1.7
--- compile.py	18 Jul 2004 06:02:02 -0000	1.8
***************
*** 40,44 ****
                  else:
                      compileFile(filename, DISPLAY)
!                     
              except SyntaxError, err:
                  print err
--- 40,44 ----
                  else:
                      compileFile(filename, DISPLAY)
! 
              except SyntaxError, err:
                  print err

Index: demo.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/demo.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** demo.py	25 Jul 2000 16:43:23 -0000	1.1
--- demo.py	18 Jul 2004 06:02:02 -0000	1.2
***************
*** 15,19 ****
      scope.  The scope is the name of the current class or None.
      """
!     
      def visitClass(self, node, scope=None):
          self.visit(node.code, node.name)
--- 15,19 ----
      scope.  The scope is the name of the current class or None.
      """
! 
      def visitClass(self, node, scope=None):
          self.visit(node.code, node.name)
***************
*** 23,27 ****
              print "%s.%s" % (scope, node.name)
          self.visit(node.code, None)
!             
  def main(files):
      mf = MethodFinder()
--- 23,27 ----
              print "%s.%s" % (scope, node.name)
          self.visit(node.code, None)
! 
  def main(files):
      mf = MethodFinder()
***************
*** 35,38 ****
  if __name__ == "__main__":
      import sys
!     
      main(sys.argv[1:])
--- 35,38 ----
  if __name__ == "__main__":
      import sys
! 
      main(sys.argv[1:])



More information about the Python-checkins mailing list