AlkantarClanX12

Your IP : 18.221.238.204


Current Path : /opt/alt/python33/lib64/python3.3/xml/sax/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/xml/sax/__pycache__/__init__.cpython-33.pyo

�
��f�
c@sxdZddlmZddlmZmZddlmZmZm	Z	m
Z
mZe�dd�Ze�dd�Z
d	gZd
Zer�d
dlZnd
dlZd
dlZdejkr�ejdjd
�Zn[dZejdd�dkr.ejje�r.ejje�jd
�Zngdd�Zejdd�dkredd�Zndd�Z[dS(u�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(uInputSource(uContentHandleruErrorHandler(uSAXExceptionuSAXNotRecognizedExceptionuSAXParseExceptionuSAXNotSupportedExceptionuSAXReaderNotAvailablecCs4t�}|j|�|j|�|j|�dS(N(umake_parserusetContentHandlerusetErrorHandleruparse(usourceuhandleruerrorHandleruparser((u5/opt/alt/python33/lib64/python3.3/xml/sax/__init__.pyuparses	

uparsecCsxddlm}|dkr(t�}nt�}|j|�|j|�t�}|j||��|j	|�dS(Ni(uBytesIO(
uiouBytesIOuNoneuErrorHandlerumake_parserusetContentHandlerusetErrorHandleruInputSourceu
setByteStreamuparse(ustringuhandleruerrorHandleruBytesIOuparseruinpsrc((u5/opt/alt/python33/lib64/python3.3/xml/sax/__init__.pyuparseString#s	

	uparseStringuxml.sax.expatreaderiNu
PY_SAX_PARSERu,upython.xml.sax.parseriujavacCs�xz|tD]n}yt|�SWqtk
rg}z&ddl}||jkrU�nWYdd}~Xqtk
rxYqXqWtdd��dS(u&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.iNuNo parsers found(udefault_parser_listu_create_parseruImportErrorusysumodulesuSAXReaderNotAvailableuNone(uparser_listuparser_nameueusys((u5/opt/alt/python33/lib64/python3.3/xml/sax/__init__.pyumake_parserDs
	umake_parsercCs2ddlm}|j|dt��}|j�S(Ni(uimp(uorg.python.coreuimpu
importNameuglobalsu
create_parser(uparser_nameuimpu
drv_module((u5/opt/alt/python33/lib64/python3.3/xml/sax/__init__.pyu_create_parser_su_create_parsercCs"t|iidg�}|j�S(Nu
create_parser(u
__import__u
create_parser(uparser_nameu
drv_module((u5/opt/alt/python33/lib64/python3.3/xml/sax/__init__.pyu_create_parseres(u__doc__u	xmlreaderuInputSourceuhandleruContentHandleruErrorHandleru_exceptionsuSAXExceptionuSAXNotRecognizedExceptionuSAXParseExceptionuSAXNotSupportedExceptionuSAXReaderNotAvailableuparseuparseStringudefault_parser_listu_falseuxml.sax.expatreaderuxmluosusysuenvironusplitu_keyuplatformuregistryucontainsKeyugetPropertyumake_parseru_create_parser(((u5/opt/alt/python33/lib64/python3.3/xml/sax/__init__.pyu<module>s*(	+