CasperSecurity

Current Path : /lib/python3/dist-packages/gyp/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/gyp/__pycache__/xml_fix.cpython-310.pyc

o

p.au�@s4dZddlZddd�Zddd�ZGd	d
�d
e�ZdS)
z�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.
�NFcCsV|�dd��dd�}|�dd��dd�}|r$|�d	d
��dd��d
d�}|�|�dS)zWrites datachars to writer.�&z&amp;�<z&lt;�"z&quot;�>z&gt;�
z&#xD;�
z&#xA;�	z&#x9;N)�replace�write)�writer�data�	is_attrib�r�-/usr/lib/python3/dist-packages/gyp/xml_fix.py�_Replacement_write_datas����r�c	Cs�|�|d|j�|��}t|���}|D]}|�d|�t|||jdd�|�d�q|jrV|�d|�|jD]}|�|||||�q<|�d||j|f�dS|�d|�dS)	Nrz %s="T)r
rz>%sz	%s</%s>%sz/>%s)	r
�tagName�_get_attributes�sorted�keysr�value�
childNodes�writexml)	�selfr�indent�	addindent�newl�attrs�a_names�a_name�noderrr�_Replacement_writexmls
r!c@s(eZdZdZdd�Zdd�Zdd�ZdS)	�XmlFixz7Object to manage temporary patching of xml.dom.minidom.cCs4tjjj|_tjjjj|_ttjj_ttjjj_dS�N)	�xml�dom�minidom�_write_data�
write_data�Elementrrr!�rrrr�__init__5s
zXmlFix.__init__cCs.|jr|jtjj_|jtjjj_d|_dSdSr#)r(r$r%r&r'rr)r*rrr�Cleanup=s

�zXmlFix.CleanupcCs|��dSr#)r,r*rrr�__del__CszXmlFix.__del__N)�__name__�
__module__�__qualname__�__doc__r+r,r-rrrrr"2s
r")F)rrr)r1�xml.dom.minidomr$rr!�objectr"rrrr�<module>s



Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY