AlkantarClanX12

Your IP : 18.226.214.91


Current Path : /proc/self/root/opt/alt/python33/lib64/python3.3/xml/dom/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/xml/dom/__pycache__/domreg.cpython-33.pyo

�
��fJ
c@sZdZidd6dd6ZiZdd�Zdd�Zd
fd	d
�Zdd�Zd
S(u�Registration facilities for DOM. This module should not be used
directly. Instead, the functions getDOMImplementation and
registerDOMImplementation should be imported from xml.dom.uxml.dom.minidomuminidomuxml.dom.DOMImplementationu4DOMcCs|t|<dS(uIregisterDOMImplementation(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(u
registered(unameufactory((u3/opt/alt/python33/lib64/python3.3/xml/dom/domreg.pyuregisterDOMImplementations	uregisterDOMImplementationcCs1x*|D]"\}}|j||�sdSqWdS(uF_good_enough(dom, features) -> Return 1 if the dom offers the featuresii(u
hasFeature(udomufeaturesufuv((u3/opt/alt/python33/lib64/python3.3/xml/dom/domreg.pyu_good_enoughsu_good_enoughcCs3ddl}d}tj|�}|rIt|iidg�}|j�S|rZt|�Sd|jkr}td|jd�St|t	�r�t
|�}nx0tj�D]"}|�}t||�r�|Sq�WxRtj
�D]D}ytd|�}Wntk
rw�YnXt||�r�|Sq�Wtd��dS(uSgetDOMImplementation(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.iNugetDOMImplementationu
PYTHON_DOMunameu$no suitable DOM implementation found(uosuNoneuwell_known_implementationsugetu
__import__ugetDOMImplementationu
registereduenvironu
isinstanceustru_parse_feature_stringuvaluesu_good_enoughukeysu	ExceptionuImportError(unameufeaturesuosucreatorumodudom((u3/opt/alt/python33/lib64/python3.3/xml/dom/domreg.pyugetDOMImplementation%s0

	
ugetDOMImplementationcCs�g}|j�}d}t|�}x�||kr�||}|ddkrctd|f��n|d}d}||kr�||}|ddkr�|d}|}q�n|j||f�q'Wt|�S(Niu
0123456789ubad feature name: %ri(usplitulenu
ValueErroruNoneuappendutuple(usufeaturesupartsuiulengthufeatureuversionuv((u3/opt/alt/python33/lib64/python3.3/xml/dom/domreg.pyu_parse_feature_stringPs"



u_parse_feature_stringN(u__doc__uwell_known_implementationsu
registereduregisterDOMImplementationu_good_enoughuNoneugetDOMImplementationu_parse_feature_string(((u3/opt/alt/python33/lib64/python3.3/xml/dom/domreg.pyu<module>s
+