KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : andertr9 ( 1047)
PHP Version : 8.2.18
Disable Function : NONE
Directory :  /lib64/python2.7/xml/sax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/xml/sax/__init__.pyc
�
r��fc@s]dZddlmZddlmZmZddlmZmZm	Z	m
Z
mZe�d�Ze�d�Z
dgZdZer�dd	lZndd	lZdd	lZd
ejkr�ejd
jd�Zn[dZejd
 dkr"ejje�r"ejje�jd�Zngd�Zejd
 dkrMd�Zn	d�Z[d	S(s�Simple API for XML (SAX) implementation for Python.

This module provides an implementation of the SAX 2 interface;
information about the Java version of the interface can be found at
http://www.megginson.com/SAX/.  The Python version of the interface is
documented at <...>.

This package contains the following modules:

handler -- Base classes and constants which define the SAX 2 API for
           the 'client-side' of SAX for Python.

saxutils -- Implementation of the convenience classes commonly used to
            work with SAX.

xmlreader -- Base classes and constants which define the SAX 2 API for
             the parsers used with SAX for Python.

expatreader -- Driver that allows use of the Expat parser with SAX.
i����(tInputSource(tContentHandlertErrorHandler(tSAXExceptiontSAXNotRecognizedExceptiontSAXParseExceptiontSAXNotSupportedExceptiontSAXReaderNotAvailablecCs4t�}|j|�|j|�|j|�dS(N(tmake_parsertsetContentHandlertsetErrorHandlertparse(tsourcethandlerterrorHandlertparser((s(/usr/lib64/python2.7/xml/sax/__init__.pyRs	

cCs�yddlm}Wn!tk
r7ddlm}nX|dkrPt�}nt�}|j|�|j|�t�}|j	||��|j
|�dS(Ni����(tStringIO(t	cStringIORtImportErrortNoneRRR	R
Rt
setByteStreamR(tstringR
RRRtinpsrc((s(/usr/lib64/python2.7/xml/sax/__init__.pytparseString#s
	

	sxml.sax.expatreaderiNt
PY_SAX_PARSERt,spython.xml.sax.parseritjavacCs}xg|tD][}yt|�SWqtk
rU}ddl}||jkrf�qfqtk
reqXqWtdd��dS(s&Creates and returns a SAX parser.

    Creates the first parser it is able to instantiate of the ones
    given in the list created by doing parser_list +
    default_parser_list.  The lists must contain the names of Python
    modules containing both a SAX parser and a create_parser function.i����NsNo parsers found(tdefault_parser_listt_create_parserRtsystmodulesRR(tparser_listtparser_nameteR((s(/usr/lib64/python2.7/xml/sax/__init__.pyRGs	
cCs2ddlm}|j|dt��}|j�S(Ni����(timpi(torg.python.coreR"t
importNametglobalst
create_parser(R R"t
drv_module((s(/usr/lib64/python2.7/xml/sax/__init__.pyRbscCs"t|iidg�}|j�S(NR&(t
__import__R&(R R'((s(/usr/lib64/python2.7/xml/sax/__init__.pyRhs(t__doc__t	xmlreaderRR
RRt_exceptionsRRRRRRRRt_falsetxml.sax.expatreadertxmltosRtenvirontsplitt_keytplatformtregistrytcontainsKeytgetPropertyRR(((s(/usr/lib64/python2.7/xml/sax/__init__.pyt<module>s*(	%	

Anon7 - 2021