ó  î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 ƒjd d ƒjd dƒ}n|j|ƒdS(sWrites datachars to writer.t&s&ts>s s s s s s 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%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 s