[Python-checkins] CVS: python/dist/src/Lib/test test_pyexpat.py,1.1,1.2

Andrew M. Kuchling python-dev@python.org
Sun, 2 Apr 2000 00:15:41 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Lib/test
In directory amarok:/home/akuchlin/src/Python-1.5/Lib/test

Modified Files:
	test_pyexpat.py 
Log Message:
Untabified file to fix problems reported by tabnanny


Index: test_pyexpat.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/test/test_pyexpat.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_pyexpat.py	2000/03/31 15:44:52	1.1
--- test_pyexpat.py	2000/04/02 05:15:38	1.2
***************
*** 8,18 ****
  
  import pyexpat
! 	 	
  class Outputter:
      def StartElementHandler(self, name, attrs):
! 	print 'Start element:\n\t', name, attrs
! 	
      def EndElementHandler(self, name):
! 	print 'End element:\n\t', name
  
      def CharacterDataHandler(self, data):
--- 8,18 ----
  
  import pyexpat
!                 
  class Outputter:
      def StartElementHandler(self, name, attrs):
!         print 'Start element:\n\t', name, attrs
!         
      def EndElementHandler(self, name):
!         print 'End element:\n\t', name
  
      def CharacterDataHandler(self, data):
***************
*** 23,46 ****
  
      def ProcessingInstructionHandler(self, target, data):
! 	print 'PI:\n\t', target, data
  
      def StartNamespaceDeclHandler(self, prefix, uri):
! 	print 'NS decl:\n\t', prefix, uri
  
      def EndNamespaceDeclHandler(self, prefix):
! 	print 'End of NS decl:\n\t', prefix
  
      def StartCdataSectionHandler(self):
! 	print 'Start of CDATA section'
  
      def EndCdataSectionHandler(self):
! 	print 'End of CDATA section'
  
      def CommentHandler(self, text):
! 	print 'Comment:\n\t', repr(text)
  
      def NotationDeclHandler(self, *args):
          name, base, sysid, pubid = args
! 	print 'Notation declared:', args
  
      def UnparsedEntityDeclHandler(self, *args):
--- 23,46 ----
  
      def ProcessingInstructionHandler(self, target, data):
!         print 'PI:\n\t', target, data
  
      def StartNamespaceDeclHandler(self, prefix, uri):
!         print 'NS decl:\n\t', prefix, uri
  
      def EndNamespaceDeclHandler(self, prefix):
!         print 'End of NS decl:\n\t', prefix
  
      def StartCdataSectionHandler(self):
!         print 'Start of CDATA section'
  
      def EndCdataSectionHandler(self):
!         print 'End of CDATA section'
  
      def CommentHandler(self, text):
!         print 'Comment:\n\t', repr(text)
  
      def NotationDeclHandler(self, *args):
          name, base, sysid, pubid = args
!         print 'Notation declared:', args
  
      def UnparsedEntityDeclHandler(self, *args):
***************
*** 66,77 ****
  parser = pyexpat.ParserCreate(namespace_separator='!')
  for name in ['StartElementHandler', 'EndElementHandler',
! 	     'CharacterDataHandler', 'ProcessingInstructionHandler',
! 	     'UnparsedEntityDeclHandler', 'NotationDeclHandler',
! 	     'StartNamespaceDeclHandler', 'EndNamespaceDeclHandler',
! 	     'CommentHandler', 'StartCdataSectionHandler',
! 	     'EndCdataSectionHandler',
               'DefaultHandler', 'DefaultHandlerExpand',
               #'NotStandaloneHandler',
! 	     'ExternalEntityRefHandler'
               ]:
      setattr(parser, name, getattr(out, name) )
--- 66,77 ----
  parser = pyexpat.ParserCreate(namespace_separator='!')
  for name in ['StartElementHandler', 'EndElementHandler',
!              'CharacterDataHandler', 'ProcessingInstructionHandler',
!              'UnparsedEntityDeclHandler', 'NotationDeclHandler',
!              'StartNamespaceDeclHandler', 'EndNamespaceDeclHandler',
!              'CommentHandler', 'StartCdataSectionHandler',
!              'EndCdataSectionHandler',
               'DefaultHandler', 'DefaultHandlerExpand',
               #'NotStandaloneHandler',
!              'ExternalEntityRefHandler'
               ]:
      setattr(parser, name, getattr(out, name) )