PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/alt/alt-nodejs8/root/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/
Upload File :
Current File : //opt/alt/alt-nodejs8/root/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.pyc

�
��Rac@sJdZddlZed�Zdddd�Zdefd��YZdS(s�Applies a fix to CR LF TAB handling in xml.dom.

Fixes this: http://code.google.com/p/chromium/issues/detail?id=76293
Working around this: http://bugs.python.org/issue5752
TODO(bradnelson): Consider dropping this when we drop XP support.
i����NcCs�|jdd�jdd�}|jdd�jdd�}|ro|jd	d
�jdd�jd
d�}n|j|�dS(sWrites datachars to writer.t&s&amp;t<s&lt;s"s&quot;t>s&gt;s
s&#xD;s
s&#xA;s	s&#x9;N(treplacetwrite(twritertdatat	is_attrib((si/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/xml_fix.pyt_Replacement_write_datastc	Cs|j|d|j�|j�}|j�}|j�xF|D]>}|jd|�t|||jdt�|jd�qAW|jr�|jd|�x+|jD] }|j	|||||�q�W|jd||j|f�n|jd|�dS(NRs %s="Rs"s>%ss	%s</%s>%ss/>%s(
RttagNamet_get_attributestkeystsortRtvaluetTruet
childNodestwritexml(	tselfRtindentt	addindenttnewltattrsta_namesta_nametnode((si/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/xml_fix.pyt_Replacement_writexmls

	 tXmlFixcBs)eZdZd�Zd�Zd�ZRS(s7Object to manage temporary patching of xml.dom.minidom.cCsLtjjj|_tjjjj|_ttjj_ttjjj_dS(N(	txmltdomtminidomt_write_datat
write_datatElementRRR(R((si/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/xml_fix.pyt__init__6scCs@|jr<|jtjj_|jtjjj_d|_ndS(N(R RRRRRR!tNone(R((si/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/xml_fix.pytCleanup>s	cCs|j�dS(N(R$(R((si/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/xml_fix.pyt__del__Ds(t__name__t
__module__t__doc__R"R$R%(((si/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/xml_fix.pyR3s		(R(txml.dom.minidomRtFalseRRtobjectR(((si/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/xml_fix.pyt<module>
s

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic