b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / xml / dom /
Filename/usr/lib64/python2.6/xml/dom/domreg.pyo
Size3.28 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 13:09
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@sXdZddkThdd6dd6ZhZd�Zd�Zd d d �Zd
�Zd S(
s´Registration facilities for DOM. This module should not be used
directly. Instead, the functions getDOMImplementation and
registerDOMImplementation should be imported from xml.dom.iÿÿÿÿ(t*sxml.dom.minidomtminidomsxml.dom.DOMImplementationt4DOMcCs|t|<dS(sIregisterDOMImplementation(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(t
registered(tnametfactory((s&/usr/lib64/python2.6/xml/dom/domreg.pytregisterDOMImplementations cCs3x,|D]$\}}|i||�pdSqWdS(sF_good_enough(dom, features) -> Return 1 if the dom offers the featuresii(t
hasFeature(tdomtfeaturestftv((s&/usr/lib64/python2.6/xml/dom/domreg.pyt _good_enough s
  c
Cs@ddk}d}ti|�}|o#t|hhdg�}|i�S|o t|�S|iid�otd|id�St |t
�ot |�}nx2ti �D]$}|�}t
||�o|Sq³WxUti�D]G}ytd|�}Wntj
o
qènXt
||�o|SqèWtd�dS(sSgetDOMImplementation(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.iÿÿÿÿNtgetDOMImplementationt
PYTHON_DOMRs$no suitable DOM implementation found(tostNonetwell_known_implementationstgett
__import__R
Rtenvironthas_keyt
isinstancet StringTypest_parse_feature_stringtvaluesR tkeyst
StandardErrort ImportError(RR RtcreatortmodR((s&/usr/lib64/python2.6/xml/dom/domreg.pyR
's4
  
  
 cCsÕg}|i�}d}t|�}x¤||jo�||}|ddjotd|f�n|d}d}||jo3||}|ddjo|d}|}q³n|i||f�q'Wt|�S(Nit
0123456789sbad feature name: %ri(tsplittlent
ValueErrorRtappendttuple(tsR tpartstitlengthtfeaturetversionR ((s&/usr/lib64/python2.6/xml/dom/domreg.pyRRs$  





N(( t__doc__txml.dom.minicompatRRRR RR
R(((s&/usr/lib64/python2.6/xml/dom/domreg.pyt<module>s

 +