/usr/lib64/python3.9/xml/dom/__pycache__
NameSizeModeActions
domreg.cpython-39.opt-1.pyc28500644editdlrm
domreg.cpython-39.opt-2.pyc16480644editdlrm
domreg.cpython-39.pyc28500644editdlrm
expatbuilder.cpython-39.opt-1.pyc268010644editdlrm
expatbuilder.cpython-39.opt-2.pyc241940644editdlrm
expatbuilder.cpython-39.pyc273100644editdlrm
minicompat.cpython-39.opt-1.pyc26650644editdlrm
minicompat.cpython-39.opt-2.pyc24870644editdlrm
minicompat.cpython-39.pyc27410644editdlrm
minidom.cpython-39.opt-1.pyc560830644editdlrm
minidom.cpython-39.opt-2.pyc535660644editdlrm
minidom.cpython-39.pyc561640644editdlrm
NodeFilter.cpython-39.opt-1.pyc9690644editdlrm
NodeFilter.cpython-39.opt-2.pyc8760644editdlrm
NodeFilter.cpython-39.pyc9690644editdlrm
pulldom.cpython-39.opt-1.pyc106910644editdlrm
pulldom.cpython-39.opt-2.pyc102550644editdlrm
pulldom.cpython-39.pyc106910644editdlrm
xmlbuilder.cpython-39.opt-1.pyc124630644editdlrm
xmlbuilder.cpython-39.opt-2.pyc120340644editdlrm
xmlbuilder.cpython-39.pyc124770644editdlrm
__init__.cpython-39.opt-1.pyc55380644editdlrm
__init__.cpython-39.opt-2.pyc47430644editdlrm
__init__.cpython-39.pyc55380644editdlrm
Edit: /usr/lib64/python3.9/xml/dom/__pycache__/domreg.cpython-39.pyc (2850B)
a ´i{ ã@s@dZddlZdddœZiZdd„Zdd „Zdd d „Zd d„ZdS)z´Registration 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)ÚnameÚfactory©rú&/usr/lib64/python3.9/xml/dom/domreg.pyÚregisterDOMImplementations rcCs$|D]\}}| ||¡sdSqdS)zF_good_enough(dom, features) -> Return 1 if the dom offers the featuresré)Z hasFeature)ÚdomÚfeaturesÚfÚvrrrÚ _good_enough s  r rc Csìddl}d}t |¡}|r2t|iidgƒ}| ¡S|r@t|ƒStjjsbd|j vrbt|j dd�St |t ƒrtt |ƒ}t  ¡D]}|ƒ}t||ƒr||Sq|t ¡D]<}zt|d�}WntyÊYq¢Yn0t||ƒr¢|Sq¢tdƒ‚dS)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.rNÚgetDOMImplementationZ PYTHON_DOM)rz$no suitable DOM implementation found)ÚosÚwell_known_implementationsÚgetÚ __import__rrÚsysÚflagsÚignore_environmentÚenvironÚ isinstanceÚstrÚ_parse_feature_stringÚvaluesr ÚkeysÚ ExceptionÚ ImportError)rr rZcreatorÚmodr rrrr's0            rcCsŽg}| ¡}d}t|ƒ}||kr†||}|ddvrBtd|fƒ‚|d}d}||krv||}|ddvrv|d}|}| ||f¡qt|ƒS)NrÚ 0123456789zbad feature name: %rr)ÚsplitÚlenÚ ValueErrorÚappendÚtuple)Úsr ÚpartsÚiÚlengthZfeatureÚversionr rrrrRs"  r)Nr)Ú__doc__rrrrr rrrrrrÚsþ  +