[Python-checkins] CVS: python/dist/src/Lib/xml/sax handler.py,1.2,1.3

Lars Marius Garshol python-dev@python.org
Thu, 21 Sep 2000 01:18:58 -0700


Update of /cvsroot/python/python/dist/src/Lib/xml/sax
In directory slayer.i.sourceforge.net:/tmp/cvs-serv2904

Modified Files:
	handler.py 
Log Message:
Updated to correct DocumentHandler signatures. (patch 101570)


Index: handler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xml/sax/handler.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** handler.py	2000/07/06 02:55:41	1.2
--- handler.py	2000/09/21 08:18:55	1.3
***************
*** 11,14 ****
--- 11,15 ----
  
  version = '2.0beta'
+ 
  #============================================================================
  #
***************
*** 16,20 ****
--- 17,23 ----
  #
  #============================================================================
+ 
  # ===== ErrorHandler =====
+ 
  class ErrorHandler:
      """Basic interface for SAX error handlers. If you create an object
***************
*** 120,137 ****
  
      def startElement(self, name, attrs):
!         """Signals the start of an element.
  
          The name parameter contains the name of the element type as a
!         (uri ,localname) tuple, the qname parameter the raw XML 1.0
          name used in the source document, and the attrs parameter
          holds an instance of the Attributes class containing the
          attributes of the element."""
  
!     def endElement(self, name ):
!         """Signals the end of an element.
  
          The name parameter contains the name of the element type, just
!         as with the startElement event."""
! 
      def characters(self, content):
          """Receive notification of character data.
--- 123,154 ----
  
      def startElement(self, name, attrs):
!         """Signals the start of an element in non-namespace mode.
! 
!         The name parameter contains the raw XML 1.0 name of the
!         element type as a string and the attrs parameter holds an
!         instance of the Attributes class containing the attributes of
!         the element."""
! 
!     def endElement(self, name):
!         """Signals the end of an element in non-namespace mode.
! 
!         The name parameter contains the name of the element type, just
!         as with the startElement event."""
! 
!     def startElementNS(self, name, qname, attrs):
!         """Signals the start of an element in namespace mode.
  
          The name parameter contains the name of the element type as a
!         (uri, localname) tuple, the qname parameter the raw XML 1.0
          name used in the source document, and the attrs parameter
          holds an instance of the Attributes class containing the
          attributes of the element."""
  
!     def endElementNS(self, name, qname):
!         """Signals the end of an element in namespace mode.
  
          The name parameter contains the name of the element type, just
!         as with the startElementNS event."""
!         
      def characters(self, content):
          """Receive notification of character data.