| Server IP : 192.250.235.158 / Your IP : 216.73.216.143 Web Server : LiteSpeed System : Linux s4099.sgp1.stableserver.net 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025 x86_64 User : vmxfzbqj ( 1905) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3.9/site-packages/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