ACC SHELL

Path : /usr/lib/python/xml/sax/
File Upload :
Current File : //usr/lib/python/xml/sax/__init__.pyc

Ñò
tÄMc
@sidZddklZddklZlZddklZlZl	Z	l
Z
lZeƒd„Zeƒd„Z
dgZdZeodd	kZndd	kZdd	kZeiid
ƒoeid
idƒZn[dZeid
 djo2eiieƒoeiieƒidƒZngd„Zeid
 djo
d„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ƒ}|i|ƒ|i|ƒ|i|ƒdS(N(tmake_parsertsetContentHandlertsetErrorHandlertparse(tsourcethandlerterrorHandlertparser((s&/usr/lib/python2.6/xml/sax/__init__.pyRs	

cCs¤yddkl}Wn#tj
oddkl}nX|djo
tƒ}ntƒ}|i|ƒ|i|ƒtƒ}|i	||ƒƒ|i
|ƒdS(Niÿÿÿÿ(tStringIO(t	cStringIORtImportErrortNoneRRR	R
Rt
setByteStreamR(tstringR
RRRtinpsrc((s&/usr/lib/python2.6/xml/sax/__init__.pytparseString#s

	

	sxml.sax.expatreaderiNt
PY_SAX_PARSERt,spython.xml.sax.parseritjavacCsƒxm|tD]a}yt|ƒSWqtj
o,}ddk}||ijo‚qlqtj
oqXqWtddƒ‚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/lib/python2.6/xml/sax/__init__.pyRGs	cCs2ddkl}|i|dtƒƒ}|iƒS(Niÿÿÿÿ(timpi(torg.python.coreR"t
importNametglobalst
create_parser(R R"t
drv_module((s&/usr/lib/python2.6/xml/sax/__init__.pyRbscCs"t|hhdgƒ}|iƒS(NR&(t
__import__R&(R R'((s&/usr/lib/python2.6/xml/sax/__init__.pyRhs(t__doc__t	xmlreaderRR
RRt_exceptionsRRRRRRRRt_falsetxml.sax.expatreadertxmltosRtenvironthas_keytsplitt_keytplatformtregistrytcontainsKeytgetPropertyRR(((s&/usr/lib/python2.6/xml/sax/__init__.pyt<module>s*(	'
	

ACC SHELL 2018