File: //usr/lib/python3.10/xml/dom/__pycache__/__init__.cpython-310.pyc
o
    E�h�  �                   @   s�  d Z G dd� d�ZdZdZdZdZdZdZd	Zd
Z	dZ
dZd
ZdZ
dZdZdZdZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d!d"� d"e�ZG d#d$� d$e�ZG d%d&� d&e�ZG d'd(� d(e�ZG d)d*� d*e�ZG d+d,� d,e�ZG d-d.� d.e�Z G d/d0� d0e�Z!G d1d2� d2e�Z"G d3d4� d4e�Z#G d5d6� d6�Z$d7Z%d8Z&d9Z'd:Z(d:Z)dd;l*m+Z+m,Z, d:S )<a
  W3C Document Object Model implementation for Python.
The Python mapping of the Document Object Model is documented in the
Python Library Reference in the section on the xml.dom package.
This package contains the following modules:
minidom -- A simple implementation of the Level 1 DOM with namespace
           support added (based on the Level 2 specification) and other
           minor Level 2 functionality.
pulldom -- DOM builder supporting on-demand tree-building for selected
           subtrees of the document.
c                   @   sD   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdS )�Nodez$Class giving the NodeType constants.� �   �   �   �   �   �   �   �   �	   �
   �   �   N)�__name__�
__module__�__qualname__�__doc__�	__slots__�ELEMENT_NODE�ATTRIBUTE_NODE�	TEXT_NODE�CDATA_SECTION_NODE�ENTITY_REFERENCE_NODE�ENTITY_NODE�PROCESSING_INSTRUCTION_NODE�COMMENT_NODE�
DOCUMENT_NODE�DOCUMENT_TYPE_NODE�DOCUMENT_FRAGMENT_NODE�
NOTATION_NODEr   r   r   �'/usr/lib/python3.10/xml/dom/__init__.pyr      s    	r   r   r   r   r   r   r   r	   r
   r   r   r
   r   �
   �   �   �   c                   @   s    e Zd ZdZdd� Zdd� ZdS )�DOMExceptionzmAbstract base class for DOM exceptions.
    Exceptions with specific codes are specializations of this class.c                 O   s.   | j tu r	td��tj| g|�R i |�� d S )Nz0DOMException should not be instantiated directly)�	__class__r%   �RuntimeError�	Exception�__init__)�self�args�kwr   r   r    r)   B   s
   
�zDOMException.__init__c                 C   s   | j S )N)�code)r*   r   r   r    �	_get_codeH   s   zDOMException._get_codeN)r   r   r   r   r)   r.   r   r   r   r    r%   >