§
    |Åd  ã                   ó`  — d Z ddlZdZdZeeu reZeZeZ	e
ZeZeZd„ ZdS ddlZeZd„ ZeZd„ Z	d„ Zd	„ Zd
„ Zd„ Zdej        j                             ¦   «         k    rdZ eej        ¦  «        e_        dej        j                             ¦   «         k    rdZ eej        ¦  «        e_        dS dS )a  Handle 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.
é    Nzlatin-1Fc                 ó,   — |                       d¦  «        S )zString_escape/unicode_escape.Ústring_escape)Údecode©Úss    ú*/usr/lib/python3/dist-packages/ntp/poly.pyr   r   -   s   € à�xŠx˜Ñ(Ô(Ð(ó    c                 ó¤   — t          | t          ¦  «        r| S t          | t          ¦  «        st          | ¦  «        S t          | t          ¬¦  «        S )z$Polymorphic string factory function.©Úencoding)Ú
isinstanceÚstrÚbytesÚmaster_encoding)Úos    r   Úpolystrr   6   sI   € å�a�ÑÔð 	ØˆHÝ˜!�UÑ#Ô#ð 	Ý�q‘6”6ˆMÝ�1�Ð/Ñ/Ô/Ð/r	   c                 ó¤   — t          | t          ¦  «        r| S t          | t          ¦  «        st          | ¦  «        S t          | t          ¬¦  «        S )z%Polymorphic string encoding function.r   )r   r   r   r   r   s    r   Ú	polybytesr   @   sI   € å�a�ÑÔð 	ØˆHÝ˜!�SÑ!Ô!ð 	Ý˜‘8”8ˆOÝ�Q¥Ð1Ñ1Ô1Ð1r	   c                 óN   — t          | t          ¦  «        rt          | ¦  «        S | S )zPolymorphic ord() function)r   r   Úord©Úcs    r   Úpolyordr   H   ó$   € å�a�ÑÔð 	Ý�q‘6”6ˆMàˆHr	   c                 óN   — t          | t          ¦  «        rt          | ¦  «        S | S )zPolymorphic chr() function)r   ÚintÚchrr   s    r   Úpolychrr   O   r   r	   c                 ó\   — |                       t          ¦  «                             d¦  «        S )z)Polymorphic string_escape/unicode_escape.Úunicode_escape)Úencoder   r   r   s    r   r   r   V   s%   € ð �xŠx�Ñ(Ô(×/Ò/Ð0@ÑAÔAÐAr	   c                 ó<   — t          j        | j        ddd¬¦  «        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ð 	Cr	   r#   T)Ú__doc__Úsysr   Úforced_utf8r   r   r   ÚunicodeÚpolyunicoder   r   r   r   Ú	raw_inputÚ	polyinputr   r'   Úinputr+   Ústdoutr   ÚlowerÚstderr© r	   r   ú<module>r8      sU  ððð ð €
€
€
à€ð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	   