| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/google-cloud-sdk/lib/third_party/argcomplete/ |
Upload File : |
from __future__ import absolute_import, division, print_function, unicode_literals
import locale
import sys
sys_encoding = locale.getpreferredencoding()
USING_PYTHON2 = True if sys.version_info < (3, 0) else False
if USING_PYTHON2:
str = unicode # noqa
else:
str = str
def ensure_bytes(x, encoding=sys_encoding):
if not isinstance(x, bytes):
x = x.encode(encoding)
return x
def ensure_str(x, encoding=sys_encoding):
if not isinstance(x, str):
x = x.decode(encoding)
return x