ó
    cÛ–i=  ã                   ó&   • S  r SS jrS rS rS rg)c                 ó   • X:„  X:  -
  $ )zë
Replacement for built-in function cmp that was removed in Python 3

Compare the two objects x and y and return an integer according to
the outcome. The return value is negative if x < y, zero if x == y
and strictly positive if x > y.
© )ÚxÚys     Ú./usr/lib/python3/dist-packages/samba/common.pyÚcmpr      s   € ð ‰E�a‘eÑÐó    c                 óÞ   • U(       a  [        SU -  5        gSSSSSS.nSnU(       a  SUS'   SUS'   Sn [        U S	U-  -   5      nUR                  5       nXS;   a  X5   $ [        S
U-  5        M:  )zpconfirm an action with the user

:param msg: A string to print to the user
:param forced: Are the answer forced
z%s [YES]TF)ÚYÚYESÚ ÚNÚNOz[y/N]ÚALLÚNONEz[y/N/all/none]z %s zUnknown response '%s')ÚprintÚinputÚupper)ÚmsgÚforcedÚ	allow_allÚmappingÚpromptÚvs         r   Úconfirmr   !   s‘   € ö Üˆj˜3ÑÔØð ØØØØñ€Gð €FæØˆ�‰Ø ˆ�‰Ø!ˆà
Ü�#˜ ™Ñ'Ó(ˆØ�G‰G‹IˆØ‹<Ø‘:ÐÜÐ%¨Ñ)Ô*ñ r   c                 óŠ   • [        U 5      S-  (       a&  [        U 5      S:”  a  [        [        U 5      S-
  5      $ [        U 5      $ )z)normalise a ldap integer to signed 32 bitl        é    l        )ÚintÚstr)Úivalues    r   Únormalise_int32r    B   s6   € ä
ˆ6ƒ{�Z×¤C¨£K°!£OÜ”3�v“; Ñ,Ó-Ð-Üˆv‹;Ðr   c                 ó¼   • U n[        U [        5      (       a  U R                  S5      nU$ [        U [        5      (       d  [	        S[        U 5      < SU < 35      eU$ ©NÚutf8zExpected bytes or string for Ú:)Ú
isinstancer   ÚencodeÚbytesÚ
ValueErrorÚtype©ÚbytesorstringÚtmps     r   Ú	get_bytesr-   O   sU   € Ø
€CÜ�-¤×%Ñ%Ø×"Ñ" 6Ó*ˆð €Jô ˜¤u×-Ñ-ÝÄÀmÖATÒVcÐdÓeÐeØ€Jr   c                 ó¼   • U n[        U [        5      (       a  U R                  S5      nU$ [        U [        5      (       d  [	        S[        U 5      < SU < 35      eU$ r"   )r%   r'   Údecoder   r(   r)   r*   s     r   Ú
get_stringr0   Z   sU   € Ø
€CÜ�-¤×'Ñ'Ø×"Ñ" 6Ó*ˆð €Jô ˜¤s×+Ñ+ÝÄÀmÖATÒVcÐdÓeÐeØ€Jr   N)FF)r   r   r    r-   r0   r   r   r   Ú<module>r1      s   ðò*	ô+òBòór   