[Python-checkins] CVS: python/dist/src/Lib/xml/dom __init__.py,1.6,1.7 minidom.py,1.20,1.21 pulldom.py,1.16,1.17

Martin v. Löwis loewis@users.sourceforge.net
Sat, 27 Jan 2001 00:47:39 -0800


Update of /cvsroot/python/python/dist/src/Lib/xml/dom
In directory usw-pr-cvs1:/tmp/cvs-serv22631

Modified Files:
	__init__.py minidom.py pulldom.py 
Log Message:
Re-indent.


Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xml/dom/__init__.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** __init__.py	2000/12/15 23:56:43	1.6
--- __init__.py	2001/01/27 08:47:37	1.7
***************
*** 61,65 ****
      """Abstract base class for DOM exceptions.
      Exceptions with specific codes are specializations of this class."""
!     
      def __init__(self, *args, **kw):
          if self.__class__ is DOMException:
--- 61,65 ----
      """Abstract base class for DOM exceptions.
      Exceptions with specific codes are specializations of this class."""
! 
      def __init__(self, *args, **kw):
          if self.__class__ is DOMException:

Index: minidom.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xml/dom/minidom.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** minidom.py	2001/01/27 08:38:34	1.20
--- minidom.py	2001/01/27 08:47:37	1.21
***************
*** 39,43 ****
      debug = None
      childNodeTypes = ()
!     
      def __init__(self):
          self.childNodes = []
--- 39,43 ----
      debug = None
      childNodeTypes = ()
! 
      def __init__(self):
          self.childNodes = []
***************
*** 169,175 ****
              oldChild.nextSibling.previousSibling = oldChild.previousSibling
          if oldChild.previousSibling is not None:
!             oldChild.previousSibling.nextSibling = oldChild.nextSibling            
          oldChild.nextSibling = oldChild.previousSibling = None
!         
          if self._makeParentNodes:
              oldChild.parentNode = None
--- 169,175 ----
              oldChild.nextSibling.previousSibling = oldChild.previousSibling
          if oldChild.previousSibling is not None:
!             oldChild.previousSibling.nextSibling = oldChild.nextSibling
          oldChild.nextSibling = oldChild.previousSibling = None
! 
          if self._makeParentNodes:
              oldChild.parentNode = None
***************
*** 262,266 ****
      ownerElement = None
      childNodeTypes = (Node.TEXT_NODE, Node.ENTITY_REFERENCE_NODE)
!     
      def __init__(self, qName, namespaceURI="", localName=None, prefix=None):
          # skip setattr for performance
--- 262,266 ----
      ownerElement = None
      childNodeTypes = (Node.TEXT_NODE, Node.ENTITY_REFERENCE_NODE)
! 
      def __init__(self, qName, namespaceURI="", localName=None, prefix=None):
          # skip setattr for performance
***************
*** 392,396 ****
                        Node.COMMENT_NODE, Node.TEXT_NODE,
                        Node.CDATA_SECTION_NODE, Node.ENTITY_REFERENCE_NODE)
!     
      def __init__(self, tagName, namespaceURI="", prefix="",
                   localName=None):
--- 392,396 ----
                        Node.COMMENT_NODE, Node.TEXT_NODE,
                        Node.CDATA_SECTION_NODE, Node.ENTITY_REFERENCE_NODE)
! 
      def __init__(self, tagName, namespaceURI="", prefix="",
                   localName=None):
***************
*** 487,494 ****
      def hasAttribute(self, name):
          return self._attrs.has_key(name)
!                      
      def hasAttributeNS(self, namespaceURI, localName):
!         return self._attrsNS.has_key((namespaceURI, localName))    
!         
      def getElementsByTagName(self, name):
          return _getElementsByTagNameHelper(self, name, [])
--- 487,494 ----
      def hasAttribute(self, name):
          return self._attrs.has_key(name)
! 
      def hasAttributeNS(self, namespaceURI, localName):
!         return self._attrsNS.has_key((namespaceURI, localName))
! 
      def getElementsByTagName(self, name):
          return _getElementsByTagNameHelper(self, name, [])
***************
*** 527,531 ****
      attributes = None
      childNodeTypes = ()
!     
      def __init__(self, data):
          Node.__init__(self)
--- 527,531 ----
      attributes = None
      childNodeTypes = ()
! 
      def __init__(self, data):
          Node.__init__(self)
***************
*** 539,543 ****
      attributes = None
      childNodeTypes = ()
!     
      def __init__(self, target, data):
          Node.__init__(self)
--- 539,543 ----
      attributes = None
      childNodeTypes = ()
! 
      def __init__(self, target, data):
          Node.__init__(self)
***************
*** 553,557 ****
      attributes = None
      childNodeTypes = ()
!     
      def __init__(self, data):
          if type(data) not in _StringTypes:
--- 553,557 ----
      attributes = None
      childNodeTypes = ()
! 
      def __init__(self, data):
          if type(data) not in _StringTypes:
***************
*** 671,675 ****
          if self.documentElement is oldChild:
              self.documentElement = None
!              
          return oldChild
  
--- 671,675 ----
          if self.documentElement is oldChild:
              self.documentElement = None
! 
          return oldChild
  

Index: pulldom.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xml/dom/pulldom.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** pulldom.py	2001/01/27 08:34:21	1.16
--- pulldom.py	2001/01/27 08:47:37	1.17
***************
*** 37,41 ****
      def pop(self):
          result = self.elementStack[-1]
!         del self.elementStack[-1] 
          return result
  
--- 37,41 ----
      def pop(self):
          result = self.elementStack[-1]
!         del self.elementStack[-1]
          return result