|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/lib64/python2.4/xml/sax/ |
Upload File : |
mò
‚=5Dc @ s d Z d k Z d k Z d k Z d k Z d k Z d k Z y e i e i g Z Wn e
j
o e i g Z n Xy d k l Z d Z
[ Wn e j
o
d Z
n Xd „ Z h d „ Z h d „ Z h d „ Z d e i f d
„ ƒ YZ d e i f d „ ƒ YZ d
d „ Z d S( sn A library of useful helper classes to the SAX classes, for the
convenience of application and driver writers.
N( s xmlcharrefreplace_errorst xmlcharrefreplacet strictc C s3 x, | i ƒ D] \ } } | i | | ƒ } q
W| S( s2 Replace substrings of a string using a dictionary.N( t dt itemst keyt valuet st replace( R R R R ( ( t( /usr/lib64/python2.4/xml/sax/saxutils.pyt __dict_replace s
c C sT | i d d ƒ } | i d d ƒ } | i d d ƒ } | o t | | ƒ } n | S( sü 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.
t &s &t >s >t <s <N( t dataR t entitiesR ( R
R ( ( R t escape s c C sN | i d d ƒ } | i d d ƒ } | o t | | ƒ } n | i d d ƒ S( s
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.
s <R s >R s &R
N( R
R R R ( R
R ( ( R t unescape. s c C s_ t | | ƒ } d | j o5 d | j o d | i d d ƒ } q[ d | } n d | } | S( s“ Escape and quote an attribute value.
Escape &, <, and > in a string of data, then quote it for use as
an attribute value. The " character will be escaped as well, if
necessary.
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.
t "t 's "%s"s "s '%s'N( R R
R R ( R
R ( ( R t quoteattr<