KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/xml/dom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/xml/dom/domreg.pyc
mò
‚=5Dc@sYdZdkThdd<dd<ZhZd„Zd„Zd
fd„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.(t*tminidomsxml.dom.minidomt4DOMsxml.dom.DOMImplementationcCs|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(tfactoryt
registeredtname(RR((t&/usr/lib64/python2.4/xml/dom/domreg.pytregisterDOMImplementationscCs6x/|D]'\}}|i||ƒpdSqqWdS(sF_good_enough(dom, features) -> Return 1 if the dom offers the featuresiiN(tfeaturestftvtdomt
hasFeature(RRR	R
((Rt_good_enough scCsLdk}d}ti|ƒ}|o&t|hhdgƒ}|iƒSnB|ot	|ƒSn,|i
idƒotd|i
dƒSnt|tƒot|ƒ}nx5t	iƒD]'}|ƒ}t||ƒo|Sq¹q¹WxXtiƒD]J}ytd|ƒ}Wntj
o
qñnXt||ƒo|Sqñqñ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.NtgetDOMImplementationt
PYTHON_DOMRs$no suitable DOM implementation found(tostNonetcreatortwell_known_implementationstgetRtmodt
__import__RRtenvironthas_keyt
isinstanceRtStringTypest_parse_feature_stringtvaluesRR
tkeyst
StandardErrortImportError(RRRRRR((RR's6	
	
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(Rtstsplittpartstitlentlengthtfeaturet
ValueErrorRtversionR
tappendttuple(R!RR$R'R&R#R)R
((RRRs$





N(	t__doc__txml.dom.minicompatRRRR
RRR(RR
RRRR((Rt?s		+

Anon7 - 2021