HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/samba/__pycache__/common.cpython-310.pyc
o

�/a:�@s.dd�Zddd�Zdd�Zdd�Zd	d
�ZdS)
cCs||k||kS)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�yrr�./usr/lib/python3/dist-packages/samba/common.py�cmps	rFcCsx|r
td|�dSdddddd�}d}|r d|d<d|d<d}	t|d	|�}|��}||vr5||Std
|�q!)z|confirm 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 zUnknown response '%s')�print�input�upper)�msg�forced�	allow_all�mapping�prompt�vrrr�confirm!s*��rcCs0t|�d@rt|�dkrtt|�d�St|�S)z)normalise a ldap integer to signed 32 bitl�l)�int�str)�ivaluerrr�normalise_int32BsrcC�>|}t|t�r|�d�}|St|t�stdt|�|f��|S)N�utf8z!Expected byte or string for %s:%s)�
isinstancer�encode�bytes�
ValueError�type��
bytesorstring�tmprrr�	get_bytesW�


�r&cCr)Nrz!Expected byte of string for %s:%s)rr �decoderr!r"r#rrr�
get_stringer'r)N)FF)rrrr&r)rrrr�<module>s

!