Your IP : 3.141.201.92
o
6��f�. � @ s� d dl Zd dlZdZdZdZdZdZdZdZ d Z
G d
d� dejj�Z
G dd
� d
�ZG dd� d�ZG dd� de
�ZdZddd�Zddd�ZdS )� N�
START_ELEMENT�END_ELEMENT�COMMENT�START_DOCUMENT�END_DOCUMENT�PROCESSING_INSTRUCTION�IGNORABLE_WHITESPACE�
CHARACTERSc @ s� e Zd ZdZdZd$dd�Zdd� Zdd� Zdd � Zd
d� Z dd
� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� ZdS )%�PullDOMNc C sx ddl m} || _d d g| _| j| _g | _| jj| _z| jj| _W n t y* Y nw |dig| _
| j
d | _g | _d S )Nr )�
XML_NAMESPACE�xml���)
Zxml.domr �documentFactory�
firstEvent� lastEvent�elementStack�append�push�pop�AttributeError�_ns_contexts�_current_context�pending_events)�selfr r � r �6/opt/alt/python310/lib64/python3.10/xml/dom/pulldom.py�__init__ s
�
zPullDOM.__init__c C s | j d }| j d= |S �Nr
)r )r �resultr r r r ! s
zPullDOM.popc C s
|| _ d S �N)�_locator)r Zlocatorr r r �setDocumentLocator&