Files
PowerToys/PythonHome/Lib/xml/sax/__init__.pyc

38 lines
3.6 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
<EFBFBD>W`Sc@s]dZddlmZddlmZmZddlmZmZm Z m
Z
m Z e<00>d<00>Z e<00>d<00>Z dgZdZer<>dd lZndd lZdd lZd
ejkr<>ejd
jd <00>Zn[d Zejd dkr"ejje<00>r"ejje<00>jd <00>Zngd<00>Zejd dkrMd<00>Zn d<00>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<EFBFBD><EFBFBD><EFBFBD><EFBFBD>(t InputSource(tContentHandlert ErrorHandler(t SAXExceptiontSAXNotRecognizedExceptiontSAXParseExceptiontSAXNotSupportedExceptiontSAXReaderNotAvailablecCs4t<00>}|j|<00>|j|<00>|j|<00>dS(N(t make_parsertsetContentHandlertsetErrorHandlertparse(tsourcethandlert errorHandlertparser((s#C:\Python27\lib\xml\sax\__init__.pyR s   cCs<>yddlm}Wn!tk
r7ddlm}nX|dkrPt<00>}nt<00>}|j|<00>|j|<00>t<00>}|j ||<00><00>|j
|<00>dS(Ni<4E><69><EFBFBD><EFBFBD>(tStringIO( t cStringIORt ImportErrortNoneRRR R
Rt setByteStreamR (tstringR RRRtinpsrc((s#C:\Python27\lib\xml\sax\__init__.pyt parseString#s       sxml.sax.expatreaderiNt PY_SAX_PARSERt,spython.xml.sax.parseritjavacCs}xg|tD][}yt|<00>SWq tk
rU}ddl}||jkrf<00>qfq tk
req Xq Wtdd<00><00>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<><69><EFBFBD><EFBFBD>NsNo parsers found(tdefault_parser_listt_create_parserRtsystmodulesRR(t parser_listt parser_nameteR((s#C:\Python27\lib\xml\sax\__init__.pyRGs   cCs2ddlm}|j|dt<00><00>}|j<00>S(Ni<4E><69><EFBFBD><EFBFBD>(timpi(torg.python.coreR"t
importNametglobalst create_parser(R R"t
drv_module((s#C:\Python27\lib\xml\sax\__init__.pyRbscCs"t|iidg<00>}|j<00>S(NR&(t
__import__R&(R R'((s#C:\Python27\lib\xml\sax\__init__.pyRhs(t__doc__t xmlreaderRR RRt _exceptionsRRRRRR RRt_falsetxml.sax.expatreadertxmltosRtenvirontsplitt_keytplatformtregistryt containsKeyt getPropertyRR(((s#C:\Python27\lib\xml\sax\__init__.pyt<module>s*( %