Server IP : 172.24.0.40 / Your IP : 216.73.216.10 Web Server : Apache System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64 User : apache ( 48) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/usr/lib64/python3.6/site-packages/lxml/__pycache__/ |
Upload File : |
3 �'�YL! � @ s� d Z ddlmZ ddlmZ ddlmZmZ ddlmZm Z G dd� dej �Zdd � ZG d d� de�Z G dd � d e�Zdd� ZdS )aI SAX-based adapter to copy trees from/to the Python standard library. Use the `ElementTreeContentHandler` class to build an ElementTree from SAX events. Use the `ElementTreeProducer` class or the `saxify()` function to fire the SAX events of an ElementTree against a SAX ContentHandler. See http://codespeak.net/lxml/sax.html � )�ContentHandler)�etree)�ElementTree� SubElement)�Comment�ProcessingInstructionc @ s e Zd ZdZdS )�SaxErrorzGeneral SAX error. N)�__name__� __module__�__qualname__�__doc__� r r �/usr/lib64/python3.6/sax.pyr s r c C s0 | d dkr$t | dd � jdd��S d | fS d S )Nr �{� �})�tuple�split)�tagr r r � _getNsTag s r c @ s� e Zd ZdZd dd�Zdd� Zeeejd�Zdd � Zd d� Z dd � Z dd� Zdd� Zdd� Z d!dd�Zdd� Zdd� Zd"dd�Zdd� Zdd� ZeZdS )#�ElementTreeContentHandlerz/Build an lxml ElementTree from SAX events. Nc C sL t j| � d | _g | _g | _d | _d d gi| _i | _|d krBtj }|| _ d S )N)r �__init__�_root�_root_siblings�_element_stack�_default_ns�_ns_mapping� _new_mappingsr ZElement�_makeelement)�selfZmakeelementr r r r "