Your IP : 3.148.105.127
3
� 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 sz ddl m} || _d d g| _| j| _g | _| jj| _y| jj| _W n t k
rV Y nX |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 �4/opt/alt/python36/lib64/python3.6/xml/dom/pulldom.py�__init__ s
zPullDOM.__init__c C s | j d }| j d= |S )Nr
r r )r )r �resultr r r r ! s
zPullDOM.popc C s
|| _ d S )N)�_locator)r Zlocatorr r r �setDocumentLocator&