Ñò
§ÚêLc @ s. d Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z y e i e i g Z Wn e
j
o e i g Z n Xy d 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.
iÿÿÿÿN( t xmlcharrefreplace_errorst xmlcharrefreplacet strictc C s3 x, | i ƒ D] \ } } | i | | ƒ } q
W| S( s2 Replace substrings of a string using a dictionary.( t itemst replace( t st dt keyt value( ( s( /usr/lib64/python2.6/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