§
!A?hß/ ã óÈ — d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z d„ Z
i fd„Zi fd„Zi fd „Z
d
„ Z G d„ dej ¦ « Z G d
„ de j ¦ « Zdd„ZdS )znA library of useful helper classes to the SAX classes, for the
convenience of application and driver writers.
é Né )Úhandler)Ú xmlreaderc óf — | ¦ « D ]\ }}| ||¦ « } Œ| S )z2Replace substrings of a string using a dictionary.)ÚitemsÚreplace)ÚsÚdÚkeyÚvalues ú=/opt/alt/python-internal/lib64/python3.11/xml/sax/saxutils.pyÚ__dict_replacer s7 € à—g’g‘i”ið "ð "‰
ˆˆUØ
�IŠI�c˜5Ñ!Ô!ˆˆØ€Hó c ó® — | dd¦ « } | dd¦ « } | dd¦ « } |rt | |¦ « } | 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.
ú&ú&ú>ú>ú<ú<©r r ©ÚdataÚentitiess r
Úescaper sY € ð �<Š<˜˜WÑ%Ô%€DØ�<Š<˜˜VÑ$Ô$€DØ�<Š<˜˜VÑ$Ô$€DØð .ݘd HÑ-Ô-ˆØ€Kr c óª — | dd¦ « } | dd¦ « } |rt | |¦ « } | dd¦ « 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.
r r r r r r r r s r
Úunescaper " sU € ð �<Š<˜ Ñ$Ô$€DØ�<Š<˜ Ñ$Ô$€DØð .ݘd HÑ-Ô-ˆà�<Š<˜ Ñ%Ô%Ð%r c ó” — i |¥ddddœ¥}t | |¦ « } d| v r$d| v rd| dd¦ « z } nd | z } nd| z } | S )
a“ 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.
z
z
z )ú
ú
ú ú"ú'z"%s"z"z'%s')r r r s r
Ú quoteattrr$ 0 sr € ð G�(ÐF '°¸vÐFÐFÐF€HÝ�$˜Ñ!Ô!€DØ
ˆd€{€{Ø�$ˆ;ˆ;ؘDŸLšL¨¨hÑ7Ô7Ñ7ˆDˆDà˜D‘=ˆDˆDà˜‰}ˆØ€Kr c óò ‡ — ‰ €dd l }|j S t ‰ t j ¦ « r‰ S t ‰ t
j t
j f¦ « r‰ S t ‰ t j ¦ « r" G ˆ fd„d¦ « } |¦ « }d„ |_ nQt j
¦ « }d„ |_ ‰ j |_ ‰ j
|_
‰ j |_ n# t $ r Y nw xY wt j ||ddd¬ ¦ « S )
Nr c ó( •— e Zd Z” j Zˆ fd„ZdS )ú _gettextwriter.