File: //opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyc
�
	T~gc           @   s�   d  Z  d d d d g Z d d l Z y e Wn  e k
 rN e d � f Z n Xe d � e e d � � f Z d e f d �  �  YZ	 d e
 f d	 �  �  YZ d
 �  Z d S(   s1   Python version compatibility support for minidom.t   NodeListt
   EmptyNodeListt   StringTypest   defpropertyi����Nt    c           B   sG   e  Z d Z d  �  Z d �  Z d �  Z e e e d d �Z d �  Z RS(   c         C   s.   d | k o t  |  � k  n r* |  | Sd  S(   Ni    (   t   len(   t   selft   index(    (    s7   /opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyt   item6   s    "c         C   s
   t  |  � S(   N(   R   (   R   (    (    s7   /opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyt   _get_length:   s    c         C   s   t  j j d � � d  S(   Ns.   attempt to modify read-only attribute 'length'(   t   xmlt   domt   NoModificationAllowedErr(   R   t   value(    (    s7   /opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyt   _set_length=   s    	t   docs$   The number of nodes in the NodeList.c         C   s    | d  k r g  } n  | |  (d  S(   N(   t   None(   R   t   state(    (    s7   /opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyt   __setstate__E   s    	(    (	   t   __name__t
   __module__t	   __slots__R   R	   R   t   propertyt   lengthR   (    (    (    s7   /opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyR    3   s   				c           B   sP   e  Z d Z d  �  Z d �  Z d �  Z d �  Z d �  Z e e e d d �Z	 RS(   c         C   s   t  �  } | j | � | S(   N(   R    t   extend(   R   t   othert   NL(    (    s7   /opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyt   __add__N   s    	
c         C   s   t  �  } | j | � | S(   N(   R    R   (   R   R   R   (    (    s7   /opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyt   __radd__S   s    	
c         C   s   d  S(   N(   R   (   R   R   (    (    s7   /opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyR   X   s    c         C   s   d S(   Ni    (    (   R   (    (    s7   /opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyR	   [   s    c         C   s   t  j j d � � d  S(   Ns.   attempt to modify read-only attribute 'length'(   R
   R   R   (   R   R
   (    (    s7   /opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyR   ^   s    	R   s$   The number of nodes in the NodeList.(    (
   R   R   R   R   R   R   R	   R   R   R   (    (    (    s7   /opt/alt/python27/lib64/python2.7/xml/dom/minicompat.pyR   K   s   					c         C   so   t  |  d | � j } | d � } t |  d | � sF t d | � � t | | d | �} t |  | | � d  S(   Nt   _get_c         S   s    t  j j d t | � � � d  S(   Ns&