/opt/alt/python38/lib64/python3.8/xml/dom/__pycache__
NameSizeModeActions
domreg.cpython-38.opt-1.pyc28650644editdlrm
domreg.cpython-38.opt-2.pyc16630644editdlrm
domreg.cpython-38.pyc28650644editdlrm
expatbuilder.cpython-38.opt-1.pyc268210644editdlrm
expatbuilder.cpython-38.opt-2.pyc242160644editdlrm
expatbuilder.cpython-38.pyc273560644editdlrm
minicompat.cpython-38.opt-1.pyc26650644editdlrm
minicompat.cpython-38.opt-2.pyc24870644editdlrm
minicompat.cpython-38.pyc27570644editdlrm
minidom.cpython-38.opt-1.pyc552870644editdlrm
minidom.cpython-38.opt-2.pyc537160644editdlrm
minidom.cpython-38.pyc553890644editdlrm
NodeFilter.cpython-38.opt-1.pyc9820644editdlrm
NodeFilter.cpython-38.opt-2.pyc8890644editdlrm
NodeFilter.cpython-38.pyc9820644editdlrm
pulldom.cpython-38.opt-1.pyc107060644editdlrm
pulldom.cpython-38.opt-2.pyc102700644editdlrm
pulldom.cpython-38.pyc107060644editdlrm
xmlbuilder.cpython-38.opt-1.pyc124790644editdlrm
xmlbuilder.cpython-38.opt-2.pyc120500644editdlrm
xmlbuilder.cpython-38.pyc125090644editdlrm
__init__.cpython-38.opt-1.pyc55450644editdlrm
__init__.cpython-38.opt-2.pyc47500644editdlrm
__init__.cpython-38.pyc55450644editdlrm
Edit: /opt/alt/python38/lib64/python3.8/xml/dom/__pycache__/domreg.cpython-38.opt-1.pyc (2865B)
U ,a{ @s@dZddlZdddZiZddZdd Zdd d Zd dZdS)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)ZminidomZ4DOMcCs |t|<dS)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)namefactoryr3/opt/alt/python38/lib64/python3.8/xml/dom/domreg.pyregisterDOMImplementations rcCs$|D]\}}|||sdSqdS)zF_good_enough(dom, features) -> Return 1 if the dom offers the featuresr)Z hasFeature)domfeaturesfvrrr _good_enough s  r rc Csddl}d}t|}|r2t|iidg}|S|r@t|Stjjsbd|j krbt|j ddSt |t rtt |}t D]}|}t||r||Sq|tD]>}zt|d}Wntk rYqYnXt||r|SqtddS)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.rNgetDOMImplementationZ PYTHON_DOM)rz$no suitable DOM implementation found)oswell_known_implementationsget __import__rrsysflagsignore_environmentenviron isinstancestr_parse_feature_stringvaluesr keys Exception ImportError)rr rZcreatormodr rrrr's0           rcCsg}|}d}t|}||kr||}|ddkrBtd|f|d}d}||krv||}|ddkrv|d}|}|||fqt|S)Nr 0123456789zbad feature name: %rr)splitlen ValueErrorappendtuple)sr partsiZlengthZfeatureversionr rrrrRs"  r)Nr)__doc__rrrrr rrrrrrs  +