HEX
Server: LiteSpeed
System: Linux srv146.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: kodi1989 (1633)
PHP: 8.1.34
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/bmemcached/__pycache__/utils.cpython-37.pyc
B

��f%�@sddlZdZdd�ZdS)�N)�str_to_bytescCs$t|tj�s t|tj�r |��S|S)aQ
    Simply convert a string type to bytes if the value is a string
    and is an instance of six.string_types but not of six.binary_type
    in python2 struct.pack("<Q") is both string_types and binary_type but
    in python3 struct.pack("<Q") is binary_type but not a string_types
    :param value:
    :param binary:
    :return:
    )�
isinstance�six�binary_type�string_types�encode)�value�r	�A/opt/alt/python37/lib/python3.7/site-packages/bmemcached/utils.pyrs
r)r�__all__rr	r	r	r
�<module>s