Your IP : 18.220.13.15
�
c��f: � � � d dl mZ d dlmZmZ d dlmZmZmZm Z m
Z
e� � fd�Z e� � fd�ZdgZ
dZerddlZddlZddlZej j s)d ej v r ej d � d
� � Z
[dZej dd� d
k rGej � e� � r-ej � e� � � d
� � Z
dd�Zej dd� d
k rd� Znd� Z[dS )� )�InputSource)�ContentHandler�ErrorHandler)�SAXException�SAXNotRecognizedException�SAXParseException�SAXNotSupportedException�SAXReaderNotAvailablec � � t � � }|� |� � |� |� � |� | � � d S )N)�make_parser�setContentHandler�setErrorHandler�parse)�source�handler�errorHandler�parsers �7/opt/alt/python311/lib64/python3.11/xml/sax/__init__.pyr r sK � �
�]�]�F�
���W�%�%�%�
���<�(�(�(�
�L�L������� c � � dd l }|�t � � }t � � }|� |� � |� |� � t � � }t
| t � � r)|� |� | � � � � n(|�
|� | � � � � |� |� � d S )N� )
�ior r r
r r �
isinstance�str�setCharacterStream�StringIO�
setByteStream�BytesIOr )�stringr r r r �inpsrcs r �parseStringr! # s� � �
�I�I�I���#�~�~��
�]�]�F�
���W�%�%�%�
���<�(�(�(�
�]�]�F��&�#��� 1��!�!�"�+�+�f�"5�"5�6�6�6�6����R�Z�Z��/�/�0�0�0�
�L�L������r zxml.sax.expatreaderr N�
PY_SAX_PARSER�,zpython.xml.sax.parser� �java� c �� � t | � � t z D ]<} t |� � c S # t $ r dd l}||j v r� Y �.t $ r Y �9w xY wt
dd � � �)Nr zNo parsers found)�list�default_parser_list�_create_parser�ImportError�sys�modulesr
)�parser_list�parser_namer, s r r r F s� � �J� �K�(�(�+>�>� � �� �!�+�.�.�.�.�.��� � � ��J�J�J��c�k�)�)� � *�)� %� � � �
�D� ����
� 2�D�
9�
9�9s �-�A� A�Ac �| � ddl m} |� | dt � � � � }|� � � S )Nr )�imp)�org.python.corer1 �
importName�globals�
create_parser)r/ r1 �
drv_modules r r* r* a s? � �'�'�'�'�'�'��^�^�K��G�I�I�>�>�
��'�'�)�)�)r c �P � t | i i dg� � }|� � � S )Nr5 )�
__import__r5 )r/ r6 s r r* r* g s* � ���B�r�?�2C�D�D�
��'�'�)�)�)r )r&