3 \' � @ sJ d Z ddddgZddlZefZG dd� de�ZG dd� de�Z d d� Z dS ) 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 Zd Zf Zdd� Zdd� Zdd� Zeeedd�Zd d � Z dS )r c C s( d| kot | �k n r$| | S d S )Nr )�len)�self�index� r �*/usr/lib64/python3.6/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 jjd��d S )Nz.attempt to modify read-only attribute 'length')�xml�dom�NoModificationAllowedErr)r �valuer r r �_set_length<