Ë
‚Ö¦iß/ ã óÎ — 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„Zy)znA library of useful helper classes to the SAX classes, for the
convenience of application and driver writers.
é Né )Úhandler)Ú xmlreaderc óZ — |j « D ] \ }}| j ||« } Œ | S )z2Replace substrings of a string using a dictionary.)ÚitemsÚreplace)ÚsÚdÚkeyÚvalues ú)/usr/lib64/python3.12/xml/sax/saxutils.pyÚ__dict_replacer s+ € à—g‘g–i‰
ˆˆUØ
�I‰I�c˜5Ó!‰ð à€Hó c óŽ — | j dd« } | j dd« } | j 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 sH € ð �<‰<˜˜WÓ%€DØ�<‰<˜˜VÓ$€DØ�<‰<˜˜VÓ$€DÙܘd HÓ-ˆØ€Kr c óŠ — | j dd« } | j dd« } |rt | |« } | j 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 " sD € ð �<‰<˜ Ó$€DØ�<‰<˜ Ó$€DÙܘd HÓ-ˆà�<‰<˜ Ó%Ð%r c óˆ — i |¥ddddœ¥}t | |« } d| v r"d| v rd| j dd« z } | S d | z } | S d| 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 sp € ð G�(ÐF '°¸vÒF€HÜ�$˜Ó!€DØ
ˆd�{Ø�$‰;ؘDŸL™L¨¨hÓ7Ñ7ˆDð
€Kð ˜D‘=ˆDð €K𠘉}ˆØ€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„ |_ nPt j « }d„ |_ ‰ j |_ ‰ j |_
‰ j |_ t j ||ddd¬ « S # t $ r Y Œ%w xY w)
Nr c ó2 •— e Zd ZW ° j Zˆ fd„Zy)ú _gettextwriter.