/opt/alt/python-internal/lib64/python3.11/xml/sax/__pycache__
NameSizeModeActions
expatreader.cpython-311.opt-1.pyc228670644editdlrm
expatreader.cpython-311.opt-2.pyc224600644editdlrm
expatreader.cpython-311.pyc228670644editdlrm
handler.cpython-311.opt-1.pyc155690644editdlrm
handler.cpython-311.opt-2.pyc65980644editdlrm
handler.cpython-311.pyc155690644editdlrm
saxutils.cpython-311.opt-1.pyc215970644editdlrm
saxutils.cpython-311.opt-2.pyc199790644editdlrm
saxutils.cpython-311.pyc215970644editdlrm
xmlreader.cpython-311.opt-1.pyc209590644editdlrm
xmlreader.cpython-311.opt-2.pyc148090644editdlrm
xmlreader.cpython-311.pyc209590644editdlrm
_exceptions.cpython-311.opt-1.pyc68490644editdlrm
_exceptions.cpython-311.opt-2.pyc42830644editdlrm
_exceptions.cpython-311.pyc68490644editdlrm
__init__.cpython-311.opt-1.pyc50850644editdlrm
__init__.cpython-311.opt-2.pyc40290644editdlrm
__init__.cpython-311.pyc50850644editdlrm
Edit: /opt/alt/python-internal/lib64/python3.11/xml/sax/__pycache__/saxutils.cpython-311.pyc (21597B)
!A?h/dZddlZddlZddlZddlZddlZddlmZddlm Z dZ ifdZ ifdZ ifd Z d ZGd d ejZGd de jZddZdS)znA library of useful helper classes to the SAX classes, for the convenience of application and driver writers. N)handler) xmlreadercf|D]\}}|||}|S)z2Replace substrings of a string using a dictionary.)itemsreplace)sdkeyvalues =/opt/alt/python-internal/lib64/python3.11/xml/sax/saxutils.py__dict_replacer s7ggii"" U IIc5 ! ! Hc|dd}|dd}|dd}|rt||}|S)zEscape &, <, and > in a string of data. You can escape other strings of data by passing a dictionary as the optional entities parameter. The keys and values must all be strings; each key will be replaced with its corresponding value. &&>><<rrdataentitiess r escapersY <<W % %D <<V $ $D <<V $ $D.dH-- Krc|dd}|dd}|rt||}|ddS)a Unescape &, <, and > in a string of data. You can unescape other strings of data by passing a dictionary as the optional entities parameter. The keys and values must all be strings; each key will be replaced with its corresponding value. rrrrrrrrs r unescaper"sU << $ $D << $ $D.dH-- << % %%rci|dddd}t||}d|vr$d|vrd|ddz}n d |z}nd|z}|S) aEscape and quote an attribute value. Escape &, <, and > in a string of data, then quote it for use as an attribute value. The " character will be escaped as well, if necessary. You can escape other strings of data by passing a dictionary as the optional entities parameter. The keys and values must all be strings; each key will be replaced with its corresponding value. z z z )   "'z"%s"z"z'%s')rrrs r quoteattrr$0srG(F'vFFFH $ ! !D d{{ $;;DLLh777DDD=DD} Krc ddl}|jSttjrStt jt jfrSttjr"Gfdd}|}d|_ nQtj }d|_ j |_ j |_ j|_n#t$rYnwxYwtj||ddd S) Nrc(eZdZjZfdZdS) _gettextwriter.._wrapperc$t|SN)getattr)selfnameouts r __getattr__z,_gettextwriter.._wrapper.__getattr__ZssD)))rN)__name__ __module__ __qualname__ __class__r.)r-sr _wrapperr'Xs5 I * * * * * * *rr3cdSr)r5rr z _gettextwriter..]strcdS)NTr5r5rr r6z _gettextwriter..bs$rxmlcharrefreplacerT)encodingerrorsnewline write_through)sysstdout isinstanceio TextIOBasecodecs StreamWriterStreamReaderWriter RawIOBasecloseBufferedIOBasewritablewriteseekabletellAttributeError TextIOWrapper)r-r9r=r3buffers` r _gettextwriterrOGs8 { z#r}%% #+V-FGHH #r|$$ * * * * * * * * * *#| "$$&,y  "lFO(FKK    D  FX#6$(*. 0 0 00s7C CCcfeZdZddZdZddZdZdZd Zd Z d Z d Z d Z dZ dZdZdZdS) XMLGeneratorN iso-8859-1Fctj|t||}|j|_|j|_ig|_|jd|_ g|_ ||_ ||_ d|_ dS)NF)rContentHandler__init__rOrI_writeflush_flush _ns_contexts_current_context_undeclared_ns_maps _encoding_short_empty_elements_pending_start_element)r+r-r9short_empty_elementss r rVzXMLGenerator.__init__rsy''---S(++i i D $ 1" 5#% !%9"&+###rc|dr:d|dkr d|dzS|j|d}|r|dz|dzS|dS)z7Builds a qualified name from a (ns_url, localname) pairrz$http://www.w3.org/XML/1998/namespacezxml:r:)r[)r+r,prefixs r _qnamezXMLGenerator._qname~sc 7 . 6a@@Q''*473F .|d1g--AwrcP|jr|dd|_dSdS)NrFr_rW)r+ endElements r _finish_pending_start_elementz*XMLGenerator._finish_pending_start_elements7  & 0 KK   */D ' ' ' 0 0rc@|d|jzdS)Nz$ )rWr]r+s r startDocumentzXMLGenerator.startDocuments/ ;' ( ( ( ( (rc.|dSr))rYrjs r endDocumentzXMLGenerator.endDocuments rc|j|j||j|<|j||fdSr))rZappendr[copyr\r+rcuris r startPrefixMappingzXMLGenerator.startPrefixMappingsV   !6!;!;!=!=>>>%+c"  '' 66666rc:|jd|_|jd=dS)NrT)rZr[r+rcs r endPrefixMappingzXMLGenerator.endPrefixMappings# $ 1" 5  b ! ! !rc ,||d|z|D]-\}}|d|dt|.|jr d|_dS|ddS)Nr =Tr)rhrWrr$r^r_)r+r,attrsr s r startElementzXMLGenerator.startElements **,,, C$J"[[]] = =MT5 KKKDDD)E*:*:*:; < < < <  % *.D ' ' ' KK     rc|jr|dd|_dS|d|zdSNz/>Fzrfr+r,s r rgzXMLGenerator.endElementsI  & ( KK   */D ' ' ' KK$ ' ' ' ' 'rc ||d||z|jD]<\}}|r|d|d|d$|d|z=g|_|D]@\}}|d||dt |A|jr d|_dS|d dS) Nrz xmlns:z="r"z xmlns="%s"rxryTr)rhrWrdr\rr$r^r_)r+r,qnamerzrcrrr s r startElementNSzXMLGenerator.startElementNSs" **,,, C$++d+++,,,3 1 1KFC 1 <==== MC/0000#% "[[]] J JMT5 KKKDKK$5$5$5$5y7G7G7GH I I I I  % *.D ' ' ' KK     rc|jr|dd|_dS|d||zdSr})r_rWrdr+r,rs r endElementNSzXMLGenerator.endElementNSsV  & 5 KK   */D ' ' ' KK$++d"3"33 4 4 4 4 4rc|rb|t|tst||j}|t |dSdSr))rhr?strr]rWrr+contents r characterszXMLGenerator.characterssg  )  . . 0 0 0gs++ 7gt~66 KKw ( ( ( ( (  ) )rc|rU|t|tst||j}||dSdSr))rhr?rr]rWrs r ignorableWhitespacez XMLGenerator.ignorableWhitespacesa  !  . . 0 0 0gs++ 7gt~66 KK  ! !rcf||d|d|ddS)Nz)rhrWr+targetrs r processingInstructionz"XMLGenerator.processingInstructions; **,,, 666444011111r)NrRF)F)r/r0r1rVrdrhrkrmrsrvr{rgrrrrrr5rr rQrQps , , , ,"0000(((777 """((($555)))!!!22222rrQceZdZdZddZdZdZdZdZdZ d Z d Z d Z d Z d ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdS) XMLFilterBaseaYThis class is designed to sit between an XMLReader and the client application's event handlers. By default, it does nothing but pass requests up to the reader and events on to the handlers unmodified, but subclasses can override specific methods to modify the event stream or the configuration requests as they pass through.NcRtj|||_dSr))r XMLReaderrV_parentr+parents r rVzXMLFilterBase.__init__s$$$T*** rc:|j|dSr)) _err_handlererrorr+ exceptions r rzXMLFilterBase.errors  *****rc:|j|dSr))r fatalErrorrs r rzXMLFilterBase.fatalErrors $$Y/////rc:|j|dSr))rwarningrs r rzXMLFilterBase.warnings !!),,,,,rc:|j|dSr)) _cont_handlersetDocumentLocator)r+locators r rz XMLFilterBase.setDocumentLocators --g66666rc8|jdSr))rrkrjs r rkzXMLFilterBase.startDocuments ((*****rc8|jdSr))rrmrjs r rmzXMLFilterBase.endDocuments &&(((((rc<|j||dSr))rrsrqs r rsz XMLFilterBase.startPrefixMappings! --fc:::::rc:|j|dSr))rrvrus r rvzXMLFilterBase.endPrefixMappings ++F33333rc<|j||dSr))rr{)r+r,rzs r r{zXMLFilterBase.startElement ! ''e44444rc:|j|dSr))rrgr~s r rgzXMLFilterBase.endElements %%d+++++rc>|j|||dSr))rr)r+r,rrzs r rzXMLFilterBase.startElementNSs# ))$u=====rc<|j||dSr))rrrs r rzXMLFilterBase.endElementNSrrc:|j|dSr))rrrs r rzXMLFilterBase.characterss %%g.....rc:|j|dSr))rr)r+charss r rz!XMLFilterBase.ignorableWhitespaces ..u55555rc<|j||dSr))rrrs r rz#XMLFilterBase.processingInstructions! 00>>>>>rc:|j|dSr))r skippedEntityr~s r rzXMLFilterBase.skippedEntity s ((.....rc>|j|||dSr)) _dtd_handler notationDecl)r+r,publicIdsystemIds r rzXMLFilterBase.notationDecl%s# &&tXx@@@@@rc@|j||||dSr))runparsedEntityDecl)r+r,rrndatas r rz XMLFilterBase.unparsedEntityDecl(s% ,,T8XuMMMMMrc8|j||Sr)) _ent_handler resolveEntity)r+rrs r rzXMLFilterBase.resolveEntity-s ..xBBBrc |j||j||j||j||j|dSr))rsetContentHandlersetErrorHandlersetEntityResolver setDTDHandlerparse)r+sources r rzXMLFilterBase.parse2sv &&t,,, $$T*** &&t,,, ""4((( 6"""""rc:|j|dSr))r setLocale)r+locales r rzXMLFilterBase.setLocale9s v&&&&&rc6|j|Sr))r getFeaturer~s r rzXMLFilterBase.getFeature<s|&&t,,,rc<|j||dSr))r setFeature)r+r,states r rzXMLFilterBase.setFeature?s  e,,,,,rc6|j|Sr))r getPropertyr~s r rzXMLFilterBase.getPropertyBs|''---rc<|j||dSr))r setProperty)r+r,r s r rzXMLFilterBase.setPropertyEs    u-----rc|jSr)rrjs r getParentzXMLFilterBase.getParentJs |rc||_dSr)rrs r setParentzXMLFilterBase.setParentMs  rr)) r/r0r1__doc__rVrrrrrkrmrsrvr{rgrrrrrrrrrrrrrrrrrr5rr rrs +++000--- 777+++)));;;444555,,,>>>555///666???/// AAANNN CCC ###'''------...... rrct|tjrtj|}t|trt j|}nt|dr|}t j}t|dtr| |n| |t|dr4t|j tr| |j | C|.|}tjtj|}tj||}tj|r&| |t+|d}nd| t,j||t,j|}| ||S)zThis function takes an InputSource and an optional base URL and returns a fully resolved InputSource object ready for reading.readrr,Nrb)r?osPathLikefspathrr InputSourcehasattrrsetCharacterStream setByteStreamr, setSystemIdgetCharacterStream getByteStream getSystemIdpathdirnamenormpathjoinisfileopenurllibrurljoinrequesturlopen)rbasefsysidbasehead sysidfilenames r prepare_input_sourcerRs&"+&&#6""&# '&v..  ' &(( affQii % % $  % %a ( ( ( (   # # # 1f   '*QVS"9"9 '   qv & & &   ""*v/C/C/E/E/M""$$7??27#3#3D#9#9:: Xu55 7>>- ( ( =   } - - -]D))AA   v|33D%@@ A A A&&v'9'9';';<rs_ ('''''''''''      & & & & .'0'0'0Rp2p2p2p2p27)p2p2p2fkkkkkI'kkk^r