/opt/imh-python/lib/python3.9/xml/dom/__pycache__
NameSizeModeActions
domreg.cpython-39.opt-1.pyc28590644editdlrm
domreg.cpython-39.opt-2.pyc16570644editdlrm
domreg.cpython-39.pyc28590644editdlrm
expatbuilder.cpython-39.opt-1.pyc268100644editdlrm
expatbuilder.cpython-39.opt-2.pyc242030644editdlrm
expatbuilder.cpython-39.pyc273190644editdlrm
minicompat.cpython-39.opt-1.pyc26740644editdlrm
minicompat.cpython-39.opt-2.pyc24960644editdlrm
minicompat.cpython-39.pyc27500644editdlrm
minidom.cpython-39.opt-1.pyc562390644editdlrm
minidom.cpython-39.opt-2.pyc537220644editdlrm
minidom.cpython-39.pyc563200644editdlrm
NodeFilter.cpython-39.opt-1.pyc9780644editdlrm
NodeFilter.cpython-39.opt-2.pyc8850644editdlrm
NodeFilter.cpython-39.pyc9780644editdlrm
pulldom.cpython-39.opt-1.pyc107000644editdlrm
pulldom.cpython-39.opt-2.pyc102640644editdlrm
pulldom.cpython-39.pyc107000644editdlrm
xmlbuilder.cpython-39.opt-1.pyc124720644editdlrm
xmlbuilder.cpython-39.opt-2.pyc120430644editdlrm
xmlbuilder.cpython-39.pyc124860644editdlrm
__init__.cpython-39.opt-1.pyc55470644editdlrm
__init__.cpython-39.opt-2.pyc47520644editdlrm
__init__.cpython-39.pyc55470644editdlrm
Edit: /opt/imh-python/lib/python3.9/xml/dom/__pycache__/domreg.cpython-39.pyc (2859B)
a dh{ @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)namefactoryr//opt/imh-python/lib/python3.9/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 vrbt|j ddSt |t rtt |}t D]}|}t||r||Sq|tD]<}zt|d}WntyYqYn0t||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||}|ddvrBtd|f|d}d}||krv||}|ddvrv|d}|}|||fqt|S)Nr 0123456789zbad feature name: %rr)splitlen ValueErrorappendtuple)sr partsilengthZfeatureversionr rrrrRs"  r)Nr)__doc__rrrrr rrrrrrs  +