File "saxutils.cpython-35.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python35/lib64/python3.5/xml/sax/__pycache__/saxutils.cpython-35.pyc
File size: 13.43 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
Yf/ @ 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.)itemsreplace)sdkeyvalue r 5/opt/alt/python35/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)zEscape &, <, 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
)dataentitiesr 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"