|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /proc/self/root/opt/alt/python311/lib64/python3.11/xml/sax/__pycache__/ |
�
\��%���� �� � 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 �7/opt/alt/python311/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 "