/usr/lib64/python3.12/xml/dom/__pycache__
NameSizeModeActions
domreg.cpython-312.opt-1.pyc38170644editdlrm
domreg.cpython-312.opt-2.pyc26390644editdlrm
domreg.cpython-312.pyc38170644editdlrm
expatbuilder.cpython-312.opt-1.pyc444450644editdlrm
expatbuilder.cpython-312.opt-2.pyc419850644editdlrm
expatbuilder.cpython-312.pyc453620644editdlrm
minicompat.cpython-312.opt-1.pyc32540644editdlrm
minicompat.cpython-312.opt-2.pyc30800644editdlrm
minicompat.cpython-312.pyc33830644editdlrm
minidom.cpython-312.opt-1.pyc918650644editdlrm
minidom.cpython-312.opt-2.pyc894420644editdlrm
minidom.cpython-312.pyc921050644editdlrm
NodeFilter.cpython-312.opt-1.pyc10640644editdlrm
NodeFilter.cpython-312.opt-2.pyc9750644editdlrm
NodeFilter.cpython-312.pyc10640644editdlrm
pulldom.cpython-312.opt-1.pyc174410644editdlrm
pulldom.cpython-312.opt-2.pyc170290644editdlrm
pulldom.cpython-312.pyc174410644editdlrm
xmlbuilder.cpython-312.opt-1.pyc168080644editdlrm
xmlbuilder.cpython-312.opt-2.pyc163950644editdlrm
xmlbuilder.cpython-312.pyc168280644editdlrm
__init__.cpython-312.opt-1.pyc61940644editdlrm
__init__.cpython-312.opt-2.pyc54150644editdlrm
__init__.cpython-312.pyc61940644editdlrm
Edit: /usr/lib64/python3.12/xml/dom/__pycache__/domreg.cpython-312.pyc (3817B)
{|j{ 8dZddlZdddZiZdZdZd dZd Zy) zRegistration facilities for DOM. This module should not be used directly. Instead, the functions getDOMImplementation and registerDOMImplementation should be imported from xml.dom.Nzxml.dom.minidomzxml.dom.DOMImplementation)minidom4DOMc|t|<y)aIregisterDOMImplementation(name, factory) Register the factory function with the name. The factory function should return an object which implements the DOMImplementation interface. The factory function can either return the same object, or a new one (e.g. if that implementation supports some customization).N) registered)namefactorys '/usr/lib64/python3.12/xml/dom/domreg.pyregisterDOMImplementationr sJtc@|D]\}}|j||ryy)zF_good_enough(dom, features) -> Return 1 if the dom offers the featuresr) hasFeature)domfeaturesfvs r _good_enoughr s&!~~a" r cPddl}d}tj|}|rt|iidg}|j S|r t |St jjs'd|jvrt |jdSt|tr t|}t jD]}|}t||s|cStjD]} t |}t||s|cSt#d#t $rY8wxYw)aSgetDOMImplementation(name = None, features = ()) -> DOM implementation. Return a suitable DOM implementation. The name is either well-known, the module name of a DOM implementation, or None. If it is not None, imports the corresponding module and returns DOMImplementation object if the import succeeds. If name is not given, consider the available implementations to find one with the required feature set. If no implementation can be found, raise an ImportError. The features list must be a sequence of (feature, version) pairs which are passed to hasFeature.rNgetDOMImplementation PYTHON_DOM)rz$no suitable DOM implementation found)oswell_known_implementationsget __import__rrsysflagsignore_environmentenviron isinstancestr_parse_feature_stringvaluesrkeys Exception ImportError)rrrcreatormodrs r rr'sG $ ( ( .C b"'=&>?'')) $!! YY ) )lbjj.H#2::l+CDD(C (2$$&i X &J' .224 &g6C X &J 5 < ==    s0 D D%$D%cg}|j}d}t|}||krR||}|ddvrtd||dz}d}||kr||}|ddvr|dz}|}|j||f||krRt |S)Nr 0123456789zbad feature name: r )splitlen ValueErrorappendtuple)srpartsilengthfeatureversionrs r r!r!RsH GGIE A ZF f*( 1: %w@A A E v:aAt|#E'*+ f* ?r )N)__doc__rrrr rrr!r5r r r7s;>  '   )>Vr