Current Path : /usr/local/lib/python2.5/xml/sax/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/lib/python2.5/xml/sax/saxutils.pyo |
³ò h”Rc @ 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/local/lib/python2.5/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 <( R R ( t datat entities( ( s, /usr/local/lib/python2.5/xml/sax/saxutils.pyt 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 ( R R ( R R ( ( s, /usr/local/lib/python2.5/xml/sax/saxutils.pyt unescape. s c C s“ | i ƒ } | i h d d <d d <d d <ƒ 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. s s s s s 	s t "t 's "%s"s "s '%s'( t copyt updateR R ( R R ( ( s, /usr/local/lib/python2.5/xml/sax/saxutils.pyt quoteattr<