tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
]\¬Qc@s]dZddlmZddlmZmZddlmZmZm    Z    m
Z
m Z eƒ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ÿÿÿÿ(t InputSource(tContentHandlert ErrorHandler(t SAXExceptiontSAXNotRecognizedExceptiontSAXParseExceptiontSAXNotSupportedExceptiontSAXReaderNotAvailablecCs4tƒ}|j|ƒ|j|ƒ|j|ƒdS(N(t make_parsertsetContentHandlertsetErrorHandlertparse(tsourcethandlert errorHandlertparser((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/xml/sax/__init__.pyR s      cCs yddlm}Wn!tk
r7ddlm}nX|dkrPtƒ}ntƒ}|j|ƒ|j|ƒtƒ}|j    ||ƒƒ|j
|ƒdS(Niÿÿÿÿ(tStringIO( t    cStringIORt ImportErrortNoneRRR    R
Rt setByteStreamR (tstringR RRRtinpsrc((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/xml/sax/__init__.pyt parseString#s             sxml.sax.expatreaderiNt PY_SAX_PARSERt,spython.xml.sax.parseritjavacCs}xg|tD][}yt|ƒSWq tk
rU}ddl}||jkrf‚qfq tk
req Xq Wtddƒ‚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(t parser_listt parser_nameteR((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/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((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/xml/sax/__init__.pyRbscCs"t|iidgƒ}|jƒS(NR&(t
__import__R&(R R'((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/xml/sax/__init__.pyRhs(t__doc__t    xmlreaderRR RRt _exceptionsRRRRRR RRt_falsetxml.sax.expatreadertxmltosRtenvirontsplitt_keytplatformtregistryt containsKeyt getPropertyRR(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/xml/sax/__init__.pyt<module>s*(    %