python (3.12.0)

(root)/
lib/
python3.12/
xml/
sax/
__pycache__/
expatreader.cpython-312.opt-2.pyc

͑e<	dZddlddlmZmZddlmZddlmZmZddlmZddlm	Z	m
Z
	ddlmZe
ed	s	ed
dddlmZmZmZej(Zej*Z	ddlZddlZej0Z[[GddZGddej6ZGddej:ej6ZdZe dk(ryddl!Z"eZ#e#jIe"jJj$jMe#jOe"jJjQe#jSdyy#e$r
ed
dwxYw#e$rd
ZYwxYw)z0.20)*)feature_validationfeature_namespaces)feature_namespace_prefixes)feature_external_gesfeature_external_pes)feature_string_interning)property_xml_stringproperty_interning_dict)expatParserCreatezexpat not supportedN)	xmlreadersaxutilshandlerc|SN)os G/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/xml/sax/expatreader.py_mkproxyr!sceZdZy)
_ClosedParserN)__name__
__module____qualname__rrrrr(srrc,eZdZ	dZdZdZdZdZy)ExpatLocatorc$t||_yr)r_refselfparsers  r__init__zExpatLocator.__init__3sV$	rc`|j}|jy|jjSr)r _parserErrorColumnNumberr!s  rgetColumnNumberzExpatLocator.getColumnNumber6s(>>!~~///rc`|j}|jy|jjSN)r r&ErrorLineNumberr!s  r
getLineNumberzExpatLocator.getLineNumber<s(>>!~~---rcT|j}|y|jjSr)r _sourcegetPublicIdr!s  rr0zExpatLocator.getPublicIdB&>~~))++rcT|j}|y|jjSr)r r/getSystemIdr!s  rr3zExpatLocator.getSystemIdHr1rN)rrrr$r(r-r0r3rrrrr-s 
%0.,,rrceZdZ	d!dZdZdZdZdZdZdZ	dZ
d"d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!y )#ExpatParserctjj||tj|_d|_||_d|_d|_g|_	d|_
d|_y)NFr)rIncrementalParserr$InputSourcer/r&_namespaces_lex_handler_prop_parsing
_entity_stack
_external_ges
_interning)r"namespaceHandlingbufsizes   rr$zExpatParser.__init__Ts]##,,T7; ,,.,!%
rc	tj|}||_	|j|jjt
|tjj||y#|jxYwr)rprepare_input_sourcer/reset
_cont_handlersetDocumentLocatorrrr7parse
_close_sourcer"sources  rrFzExpatParser.parseasq=..v6		JJL11,t2DE''--dF;	
 sAA44Bcx|j*|jj|jyyr)r3r&SetBaserHs  r
prepareParserzExpatParser.prepareParserqs1+LL  !3!3!56,rc~tjj|||jr|j	yyr)rr7setContentHandlerr;_reset_cont_handler)r"rs  rrNzExpatParser.setContentHandlerws0##55dGD==$$&rc|tk(r|jS|tk(r|jduS|tt
tfvry|tk(r|jStd|z)NrFeature '%s' not recognized)
rr9r	r>rrrrr=SAXNotRecognizedExceptionr"names  r
getFeaturezExpatParser.getFeature|sn%%###
-
-??$..
(*>022
)
)%%%'(E(LMMrcj|jrtd|tk(r||_y|tk(r||_y|tk(r|r|ji|_yd|_yy|tk(r|rtdy|tk(r|rtdy|tk(r|rtdytd|z)Nz!Cannot set features while parsingz!expat does not support validationz/expat does not read external parameter entitiesz(expat does not report namespace prefixesrQ)r;SAXNotSupportedExceptionrr9rr=r	r>rrrrR)r"rTstates   r
setFeaturezExpatParser.setFeatures==*+NOO%%$D
)
)!&D
-
-??*&(DO"&+'
'.799)
).EGG/
/.>@@,-46
6rc<|tjk(r|jS|tk(r|jS|t
k(rR|jr;t|jdr|jjStdtdtd|z)NGetInputContextz=This version of expat does not support getting the XML stringz.XML string cannot be returned when not parsingProperty '%s' not recognized)rproperty_lexical_handlerr:rr>r
r&hasattrr[rRrWrSs  rgetPropertyzExpatParser.getPropertys7333)))
,
,??"
(
(||4<<):;<<77993*++/DFF'(F(MNNrc|tjk(r%||_|jr|j	yy|t
k(r||_y|tk(rtd|ztd|z)NzProperty '%s' cannot be setr\)
rr]r:r;_reset_lex_handler_proprr>r
rWrR)r"rTvalues   rsetPropertyzExpatParser.setPropertys{7333%*D"}},,.
,
,#DO
(
(*+H+/,01
1,,J,0-12
2rc|js1|jd|_|jj	|jj||y#tj$rO}tt
j|j||}|jj|Yd}~yd}~wwxYw)NT)
r;rCrD
startDocumentr&ParsererrorSAXParseExceptionErrorStringcode_err_handler
fatalError)r"dataisFinaleexcs     rfeedzExpatParser.feeds}}JJL DM,,.		.

LLtW-{{	.#E$5$5aff$=q$GC((--	.sAB>/AB99B>c|j}	|j}||j|j}||jyy#|j}||jwwxYwr)r/getCharacterStreamclose
getByteStream)r"rIfiles   rrGzExpatParser._close_sourcesu	,,.D

'')D

 '')D

 s"A%A9c|js&|jt|jtry	|j	dd|j
j
d|_d|_d|_|jGt}|jj|_|jj|_	||_|jy#d|_|jGt}|jj|_|jj|_	||_|jwxYw)NrT)rnF)r<r&
isinstancerrqrDendDocumentr;r'r,rGr!s  rrtzExpatParser.closes$,,"6t||]3	!IIc4I(**,!DMDL!DM||'&+/<<+I+I()-)E)E&% "DM||'&+/<<+I+I()-)E)E&% s;CA,Ec|jj|j_|jj|j_yr)rDprocessingInstructionr&ProcessingInstructionHandler
charactersCharacterDataHandlerr"s rrOzExpatParser._reset_cont_handlers5$($6$6$L$L	
1,0,>,>,I,I)rc*|j}|j}|$d|_d|_d|_d|_d|_y|j|_|j|_|j|_|j|_|j|_yr)r:r&CommentHandlerStartCdataSectionHandlerEndCdataSectionHandlerStartDoctypeDeclHandlerEndDoctypeDeclHandlercomment
startCDATAendCDATAstart_doctype_declendDTD)r"lexr#s   rraz#ExpatParser._reset_lex_handler_props$$;$(F!.2F+,0F)-1F*+/F($'KKF!.1nnF+,/LLF)-1-D-DF*+.::F(rcJ|jrtj|jj	d|j
|_d|j_|j|j_	|j|j_nttj|jj	|j
|_|j|j_	|j|j_|j|j|j_|j"|j_|j&|j_|j*|j_d|_|j0r|j3|j4|j_	|j8|j_|jj?tj@d|_!g|_"y#t<$rYCwxYw)N )internr+F)#r9rr
r/getEncodingr>r&namespace_prefixesstart_element_nsStartElementHandlerend_element_nsEndElementHandler
start_elementend_elementrOunparsed_entity_declUnparsedEntityDeclHandler
notation_declNotationDeclHandlerstart_namespace_declStartNamespaceDeclHandlerend_namespace_declEndNamespaceDeclHandler_decl_handler_propr:raexternal_entity_refExternalEntityRefHandlerskipped_entity_handlerSkippedEntityHandlerAttributeErrorSetParamEntityParsing*XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONEr;r<rs rrCzExpatParser.resets --dll.F.F.H#59__FDL./DLL+/3/D/DDLL,-1-@-@DLL* --dll.F.F.H7;HDL/3/A/ADLL,-1-=-=DLL*  "151J1J.+/+=+=(151J1J./3/F/F,"&!!((*150H0H-	040K0KDLL-	
**<<	>
		sH	H"!H"cH|jy|jjSr)r&r'rs rr(zExpatParser.getColumnNumber5s<<||---rcH|jy|jjSr*)r&r,rs rr-zExpatParser.getLineNumber:s<<||+++rc6|jjSr)r/r0rs rr0zExpatParser.getPublicId?||''))rc6|jjSr)r/r3rs rr3zExpatParser.getSystemIdBrrcN|jj|t|yr)rDstartElementAttributesImpl)r"rTattrss   rrzExpatParser.start_elementFs''nU.CDrc:|jj|yr)rD
endElementrSs  rrzExpatParser.end_elementI%%d+rc|j}t|dk(rd|f}n$t|dk(r|d|df}nt|}i}i}|jD]c\}}|j}t|}	|	dk(r|}
d|f}n-|	dk(r|dd|d}
|d|df}n|d}
t|}|||<|
||<e|jj|dt
||y)Nr+r:)splitlentupleitemsrDstartElementNSAttributesNSImpl)r"rTrpairnewattrsqnamesanamerbpartslengthqnameapairs            rrzExpatParser.start_element_nsLszz|t9>$<D
Y!^7DG#D;D#kkm	"NUEKKMEZF{u
1#(8U1X6a%(*ae#HUO!F5M!	"$	
))$*:8V*L	Nrc|j}t|dk(rd|f}n$t|dk(r|d|df}nt|}|jj	|dy)Nr+rr)rrrrDendElementNS)r"rTrs   rrzExpatParser.end_element_nsns]zz|t9>$<D
Y!^7DG#D;D''d3rc<|jj||yr)rDr{)r"targetrms   rprocessing_instructionz"ExpatParser.processing_instructionzs00>rc:|jj|yr)rDr})r"rms  rcharacter_datazExpatParser.character_data~rrc<|jj||yr)rDstartPrefixMapping)r"prefixuris   rrz ExpatParser.start_namespace_decls--fc:rc:|jj|yr)rDendPrefixMapping)r"rs  rrzExpatParser.end_namespace_decls++F3rc>|jj|||yr)r:startDTD)r"rTsysidpubidhas_internal_subsets     rrzExpatParser.start_doctype_decls''eU;rc@|jj||||yr)_dtd_handlerunparsedEntityDecl)r"rTbaserr
notation_names      rrz ExpatParser.unparsed_entity_decls,,T5%Orc>|jj|||yr)rnotationDecl)r"rTrrrs     rrzExpatParser.notation_decls&&tUE:rc|jsy|jj||}tj||j
j
xsd}|jj|j|j
f|jj||_	||_	tjj|||jd\|_	|_|jd=y#YyxYw)Nr+r)r=_ent_handler
resolveEntityrrBr/r3r<appendr&ExternalEntityParserCreaterr7rF)r"contextrrrrIs      rrzExpatParser.external_entity_refs!!""00>..v/3||/G/G/I02/13	
!!4<<">?||>>wG	''--dF;(,'9'9"'=$t|r"	s5 C??DcH|rd|z}|jj|y)N%)rD
skippedEntity)r"rTis_pes   rrz"ExpatParser.skipped_entity_handlers"t8D((.rN)ri)F)"rrrr$rFrLrNrUrYr_rcrqrGrtrOrarCr(r-r0r3rrrrrrrrrrrrrrrrr5r5Qs.	 7'

N6<O$2 ."	!*J
6 # N.
,
**E, ND	4?,;4<P;,/rr5ct|i|Sr)r5)argskwargss  r
create_parserrs'''r__main__z:http://www.ibiblio.org/xml/examples/shakespeare/hamlet.xml)*versionxml.sax._exceptionsxml.sax.handlerrrrrrr	r
rxml.parsersrr^SAXReaderNotAvailableImportErrorxml.saxrrrrr_weakrefweakrefproxyrrLocatorrr7r5rrxml.sax.saxutilsxmlprNsaxXMLGeneratorsetErrorHandlerErrorHandlerrFrrr<module>rsT
!B6F4HA!5.)#$94@@00))--

}}H		
,9$$,HY/)--y/@/@Y/z
(
zA((5578cgg**,-GGHIE
=
 5t
<<=sE)EEEE