Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
proc
/
self
/
root
/
usr
/
lib
/
python2.4
/
xml
/
dom
/
Upload File :
New :
File
Dir
//proc/self/root/proc/self/root/usr/lib/python2.4/xml/dom/domreg.pyo
mò ‚=5Dc�����������@���sY���d��Z��d�k�Th��d�d�<d�d�<Z�h��Z�d�„��Z�d�„��Z�d �f��d�„�Z�d �„��Z�d �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���*t���minidoms���xml.dom.minidomt���4DOMs���xml.dom.DOMImplementationc���������C���s���|�t�|��<d�S(���sI��registerDOMImplementation(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���factoryt ���registeredt���name(���R���R���(����(����t$���/usr/lib/python2.4/xml/dom/domreg.pyt���registerDOMImplementation���s�����c���������C���s6���x/�|�D]'�\�}�}�|��i�|�|�ƒ�p�d�Sq�q�Wd�S(���sF���_good_enough(dom, features) -> Return 1 if the dom offers the featuresi����i���N(���t���featurest���ft���vt���domt ���hasFeature(���R���R���R ���R ���(����(����R���t���_good_enough ���s������c���������C���sL��d�k��}�d�}�t�i�|��ƒ�}�|�o&�t�|�h��h��d�g�ƒ�}�|�i�ƒ��SnB�|��o�t �|��ƒ��Sn,�|�i �i�d�ƒ�o�t�d�|�i �d�ƒ�Sn�t�|�t�ƒ�o�t�|�ƒ�}�n�x5�t �i�ƒ��D]'�}�|�ƒ��}�t�|�|�ƒ�o�|�Sq¹�q¹�WxX�t�i�ƒ��D]J�}�y�t�d�|�ƒ�}�Wn�t�j �o �qñ�n�Xt�|�|�ƒ�o�|�Sqñ�qñ�Wt�d�‚�d�S(���sS��getDOMImplementation(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.Nt���getDOMImplementationt ���PYTHON_DOMR���s$���no suitable DOM implementation found(���t���ost���Nonet���creatort���well_known_implementationst���getR���t���modt ���__import__R���R���t���environt���has_keyt ���isinstanceR���t���StringTypest���_parse_feature_stringt���valuesR���R ���t���keyst ���StandardErrort���ImportError(���R���R���R���R���R���R���(����(����R���R���'���s6����� � �c���������C���sÕ���g��}�|��i�ƒ��}�d�}�t�|�ƒ�}�x¤�|�|�j��o–�|�|�}�|�d�d�j�o�t�d�|�f�‚�n�|�d�}�d��}�|�|�j��o3�|�|�}�|�d�d�j�o�|�d�}�|�}�q³�n�|�i�|�|�f�ƒ�q'�Wt �|�ƒ�S(���Ni����t ���0123456789s���bad feature name: %ri���(���R���t���st���splitt���partst���it���lent���lengtht���featuret ���ValueErrorR���t���versionR ���t���appendt���tuple(���R!���R���R$���R'���R&���R#���R)���R ���(����(����R���R���R���s$����� N( ���t���__doc__t���xml.dom.minicompatR���R���R���R ���R���R���R���(���R���R ���R���R���R���R���(����(����R���t���?���s��� +