File: //opt/alt/python35/lib64/python3.5/xml/dom/__pycache__/minicompat.cpython-35.pyc
��Yf'
  �               @   si   d  Z  d d d d g Z d d l Z e f Z Gd d �  d e � Z Gd d �  d e � Z	 d	 d �  Z
 d S)
z�Python version compatibility support for minidom.
This module contains internal implementation details and
should not be imported; use xml.dom.minidom instead.
�NodeList�
EmptyNodeList�StringTypes�defproperty�    Nc               @   s[   e  Z d  Z f  Z d d �  Z d d �  Z d d �  Z e e e d d �Z d	 d
 �  Z	 d S)r   c             C   s.   d | k o t  |  � k  n r* |  | Sd  S)Nr   )�len)�self�index� r	   �7/opt/alt/python35/lib64/python3.5/xml/dom/minicompat.py�item5   s    "z
NodeList.itemc             C   s
   t  |  � S)N)r   )r   r	   r	   r
   �_get_length9   s    zNodeList._get_lengthc             C   s   t  j j d � � d  S)Nz.attempt to modify read-only attribute 'length')�xml�dom�NoModificationAllowedErr)r   �valuer	   r	   r
   �_set_length<