Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /usr/lib64/python2.6/site-packages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.6/site-packages/drv_libxml2.pyo
Ñò
XiRc@s9dZdZdZddkZddklZlZeefZddkTddk	l
Z
lZddkl
Z
lZlZlZlZlZlZlZlZlZeid	ƒd
Zd„ZyddkZWn%ej
oZedeƒ‚nXd
e
ifd„ƒYZde
ifd„ƒYZ d„Z!dS(sí A SAX2 driver for libxml2, on top of it's XmlReader API

USAGE
    # put this file (drv_libxml2.py) in PYTHONPATH
    import xml.sax
    reader = xml.sax.make_parser(["drv_libxml2"])
    # ...and the rest is standard python sax.

CAVEATS
    - Lexical handlers are supported, except for start/endEntity
      (waiting for XmlReader.ResolveEntity) and start/endDTD
    - Error callbacks are not exactly synchronous, they tend
      to be invoked before the corresponding content callback,
      because the underlying reader interface parses
      data by chunks of 512 bytes
    
TODO
    - search for TODO
    - some ErrorHandler events (warning)
    - some ContentHandler events (setDocumentLocator, skippedEntity)
    - EntityResolver (using libxml2.?)
    - DTDHandler (if/when libxml2 exposes such node types)
    - DeclHandler (if/when libxml2 exposes such node types)
    - property_xml_string?
    - feature_string_interning?
    - Incremental parser
    - additional performance tuning:
      - one might cache callbacks to avoid some name lookups
      - one might implement a smarter way to pass attributes to startElement
        (some kind of lazy evaluation?)
      - there might be room for improvement in start/endPrefixMapping
      - other?

u Stéphane Bidoul <sbi@skynet.be>s0.3iÿÿÿÿN(t
StringTypetUnicodeType(t*(t	xmlreadertsaxutils(
tfeature_namespacestfeature_namespace_prefixestfeature_string_interningtfeature_validationtfeature_external_gestfeature_external_pestproperty_lexical_handlertproperty_declaration_handlertproperty_dom_nodetproperty_xml_stringtutf8icCs$|djo|St|ƒdSdS(Ni(tNonet_decoder(ts((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyt_d<s
s+libxml2 not available: import error was: %stLocatorcBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(s4SAX Locator adapter for libxml2.xmlTextReaderLocatorcCs
||_dS(N(t_Locator__locator(tselftlocator((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyt__init__KscCsdS(s6Return the column number where the current event ends.iÿÿÿÿ((R((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pytgetColumnNumberNscCs
|iiƒS(s4Return the line number where the current event ends.(Rt
LineNumber(R((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyt
getLineNumberRscCsdS(s3Return the public identifier for the current event.N(R(R((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pytgetPublicIdVscCs
|iiƒS(s3Return the system identifier for the current event.(RtBaseURI(R((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pytgetSystemIdZs(t__name__t
__module__t__doc__RRRRR(((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyRHs				t
LibXml2ReadercBsbeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„ZRS(
cCs\tii|ƒd|_d|_d|_d|_d|_d|_	d|_
d|_dS(Nii(Rt	XMLReaderRt_LibXml2Reader__nst_LibXml2Reader__nspfxt_LibXml2Reader__validatet_LibXml2Reader__extparamst_LibXml2Reader__parsingRt_LibXml2Reader__lex_handlert_LibXml2Reader__decl_handlert_LibXml2Reader__errors(R((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyR`s							cCsI|idjo
g|_n|ii|t|dt|ƒƒfƒdS(N(R+RtappendtSAXParseExceptionR(RtargtmsgtseverityR((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyt
_errorHandleros

	cCs—x‡|iD]|\}}|titifjo|ii|ƒq
|o,||iddjo|ii|ƒq
|ii|ƒ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oq3|djoq3|djoq3|djoq3t d|ƒ‚q3|djo|iiAƒn|iBƒWdd|_XdS(Niis"Read failed (no details available)txmlnsiiiii
iiiiii
iisUnexpected node type %d(CR(ttypetStringTypesR2tnewTextReaderFilenameRtprepare_input_sourcetinputBuffert
getByteStreamt
newTextReaderRtSetErrorHandlerR1RR't
SetParserProptPARSER_LOADDTDtPARSER_DEFAULTATTRStPARSER_SUBST_ENTITIEStPARSER_VALIDATER&R$RtAttributesNSImpltAttributesImplt
_cont_handlert
startDocumenttReadR+R;R5R7tSAXExceptiontNodeTypeRtNamespaceUrit	LocalNametNamet_attrst_qnamestMoveToNextAttributetValuet
startswithtlenR,tstartPrefixMappingR%t
MoveToElementtstartElementNStIsEmptyElementtendElementNStendPrefixMappingtstartElementt
endElementtpopt
characterstignorableWhitespaceR)t
startCDATAtendCDATAtstartEntityt
ResolveEntityt	endEntitytprocessingInstructiontcommenttendDocumenttClose(RtsourcetreadertinputtattributesNSImpltattributesImpltprefixestrtnodeTypeteltNameteltQNametattrstqnamestnewPrefixestqnametvaluet	newPrefixtattNametprefix((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pytparse…sü	




	






	



	




	



	!
 
 
 
 


!
	&
$




cCstdƒ‚dS(NsDTDHandler not supported(tSAXNotSupportedException(Rthandler((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyt
setDTDHandler0scCstdƒ‚dS(NsEntityResolver not supported(R(Rtresolver((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pytsetEntityResolver4scCsz|tjo|iS|tjo|iS|tjo|iS|tjodS|tjo|iSt	d|ƒ‚dS(NisFeature '%s' not recognized(
RR$RR%RR&R	R
R'tSAXNotRecognizedException(Rtname((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyt
getFeature8s




cCsÌ|iotd|ƒ‚n|tjo
||_n‘|tjo
||_nw|tjo
||_n]|tjo%|djotd|ƒ‚qÈn+|t	jo
||_
ntd|ƒ‚dS(Ns#Cannot set feature %s while parsingisFeature '%s' not supportedsFeature '%s' not recognized(R(RRR$RR%RR&R	R
R'R†(RR‡tstate((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyt
setFeatureGs"










cCs>|tjo|iS|tjo|iStd|ƒ‚dS(NsProperty '%s' not recognized(RR)RR*R†(RR‡((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pytgetProperty\s

cCsX|tjo
||_n;|tjotd|ƒ‚||_ntd|ƒ‚dS(NsProperty '%s' not supportedsProperty '%s' not recognized(RR)RRR*R†(RR‡R|((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pytsetPropertyes




(RR RR1R;R€RƒR…RˆRŠR‹RŒ(((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyR"^s				«						cCstƒS(N(R"(((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyt
create_parserqs("R!t
__author__t__version__tcodecsttypesRRR>txml.sax._exceptionstxml.saxRRtxml.sax.handlerRRRRR	R
RRR
RtlookupRRR2tImportErrortetSAXReaderNotAvailableRR#R"R(((s1/usr/lib64/python2.6/site-packages/drv_libxml2.pyt<module>#s&
F
	ÿ

haha - 2025