whoami7 - Manager
:
/
proc
/
self
/
root
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
xml
/
sax
/
__pycache__
/
Upload File:
files >> //proc/self/root/opt/alt/python37/lib64/python3.7/xml/sax/__pycache__/__init__.cpython-37.opt-2.pyc
B YI~d. � @ s d dl mZ d dlmZmZ d dlmZmZmZm Z m Z e� fdd�Ze� fdd�ZdgZ d Zerjd d lZd d lZd d lZejjs�dejkr�ejd �d�Z [d Zejd d� dkr�ej�e�r�ej�e��d�Z g fdd�Zejd d� dkr�dd� Zndd� Z[d S )� )�InputSource)�ContentHandler�ErrorHandler)�SAXException�SAXNotRecognizedException�SAXParseException�SAXNotSupportedException�SAXReaderNotAvailablec C s( t � }|�|� |�|� |�| � d S )N)�make_parser�setContentHandler�setErrorHandler�parse)�source�handler�errorHandler�parser� r �5/opt/alt/python37/lib64/python3.7/xml/sax/__init__.pyr s r c C sp dd l }|d krt� }t� }|�|� |�|� t� }t| t�rR|�|� | �� n|� |�| �� |�|� d S )N� ) �ior r r r r � isinstance�strZsetCharacterStream�StringIOZ setByteStream�BytesIOr )�stringr r r r Zinpsrcr r r �parseString# s r zxml.sax.expatreaderr NZ PY_SAX_PARSER�,zpython.xml.sax.parser� �javac C sr xb| t D ]V}yt|�S tk rL } zdd l}||jkr<� W d d }~X Y q tk r^ Y q X q W tdd ��d S )Nr zNo parsers found)�default_parser_list�_create_parser�ImportError�sys�modulesr )Zparser_list�parser_name�er"