/usr/lib64/python3.6/xml/dom/__pycache__
NameSizeModeActions
domreg.cpython-36.opt-1.pyc28230644editdlrm
domreg.cpython-36.opt-2.pyc16210644editdlrm
domreg.cpython-36.pyc28230644editdlrm
expatbuilder.cpython-36.opt-1.pyc266200644editdlrm
expatbuilder.cpython-36.opt-2.pyc239940644editdlrm
expatbuilder.cpython-36.pyc271460644editdlrm
minicompat.cpython-36.opt-1.pyc26990644editdlrm
minicompat.cpython-36.opt-2.pyc25210644editdlrm
minicompat.cpython-36.pyc27910644editdlrm
minidom.cpython-36.opt-1.pyc555970644editdlrm
minidom.cpython-36.opt-2.pyc540230644editdlrm
minidom.cpython-36.pyc556990644editdlrm
NodeFilter.cpython-36.opt-1.pyc9530644editdlrm
NodeFilter.cpython-36.opt-2.pyc8600644editdlrm
NodeFilter.cpython-36.pyc9530644editdlrm
pulldom.cpython-36.opt-1.pyc105370644editdlrm
pulldom.cpython-36.opt-2.pyc101030644editdlrm
pulldom.cpython-36.pyc105370644editdlrm
xmlbuilder.cpython-36.opt-1.pyc135230644editdlrm
xmlbuilder.cpython-36.opt-2.pyc130940644editdlrm
xmlbuilder.cpython-36.pyc135530644editdlrm
__init__.cpython-36.opt-1.pyc54330644editdlrm
__init__.cpython-36.opt-2.pyc46380644editdlrm
__init__.cpython-36.pyc54330644editdlrm
Edit: /usr/lib64/python3.6/xml/dom/__pycache__/domreg.cpython-36.pyc (2823B)
3 \{ @sDdZddlZdddZiZddZdd Zdffd d Zd d ZdS)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)namefactoryr&/usr/lib64/python3.6/xml/dom/domreg.pyregisterDOMImplementations rcCs&x |D]\}}|j||sdSqWdS)zF_good_enough(dom, features) -> Return 1 if the dom offers the featuresr)Z hasFeature)domfeaturesfvrrr _good_enough s r c Csddl}d}tj|}|r2t|iidg}|jS|r@t|Stjj rdd|j krdt|j ddSt |t rvt |}x$tj D]}|}t||r|SqWxDtjD]8}yt|d}Wntk rwYnXt||r|SqWtddS)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}|j}d}t|}xp||kr||}|ddkrDtd|f|d}d}||krx||}|ddkrx|d}|}|j||fqWt|S)Nr 0123456789zbad feature name: %rr)splitlen ValueErrorappendtuple)sr partsiZlengthZfeatureversionr rrrrRs"   r)__doc__rrrrr rrrrrrs +