HEX
Server: Apache
System: Linux box5154.bluehost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: almiraso (1849)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib64/python3.9/site-packages/ntp/__pycache__/poly.cpython-39.pyo
a

\��d�@s�dZddlZdZdZeeur>eZeZeZ	e
ZeZe
Zdd�Zn�ddlZeZdd�ZeZd	d
�Z	dd�Zd
d�Zdd�Zdd�Zdejj��kr�dZeej�e_dejj��kr�dZeej�e_dS)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-1FcCs
|�d�S)zString_escape/unicode_escape.�
string_escape)�decode��s�r�./usr/lib64/python3.9/site-packages/ntp/poly.pyr-srcCs,t|t�r|St|t�s t|�St|td�S)z$Polymorphic string factory function.��encoding)�
isinstance�str�bytes�master_encoding)�orrr�polystr6s


rcCs,t|t�r|St|t�s t|�St|td�S)z%Polymorphic string encoding function.r)r
rrr
rrrr�	polybytes@s


rcCst|t�rt|�S|SdS)zPolymorphic ord() functionN)r
r�ord��crrr�polyordHs
rcCst|t�rt|�S|SdS)zPolymorphic chr() functionN)r
�int�chrrrrr�polychrOs
rcCs|�t��d�S)z)Polymorphic string_escape/unicode_escape.Zunicode_escape)�encoder
rrrrrrVscCstj|jdddd�S)z/Standard input/output wrapper factory function.�utf-8�
T)r	�newline�line_buffering)�io�
TextIOWrapper�buffer)�streamrrr�make_std_wrapper^s
�r!rT)�__doc__�sysr
Zforced_utf8rrrZunicodeZpolyunicoderrrrZ	raw_inputZ	polyinputrr�inputr!�stdoutr	�lower�stderrrrrr�<module>s4