Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
requests /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
adapters.py
20.84
KB
-rw-r--r--
api.py
6.34
KB
-rw-r--r--
auth.py
9.97
KB
-rw-r--r--
certs.py
453
B
-rw-r--r--
compat.py
1.74
KB
-rw-r--r--
cookies.py
18
KB
-rw-r--r--
exceptions.py
3.09
KB
-rw-r--r--
help.py
3.43
KB
-rw-r--r--
hooks.py
757
B
-rw-r--r--
__init__.py
4.04
KB
-rw-r--r--
_internal_utils.py
1.07
KB
-rw-r--r--
models.py
33.5
KB
-rw-r--r--
packages.py
542
B
-rw-r--r--
sessions.py
29.62
KB
-rw-r--r--
status_codes.py
4.09
KB
-rw-r--r--
structures.py
2.93
KB
-rw-r--r--
utils.py
29.55
KB
-rw-r--r--
__version__.py
441
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : _internal_utils.py
# -*- coding: utf-8 -*- """ requests._internal_utils ~~~~~~~~~~~~~~ Provides utility functions that are consumed internally by Requests which depend on extremely few external helpers (such as compat) """ from .compat import is_py2, builtin_str, str def to_native_string(string, encoding='ascii'): """Given a string object, regardless of type, returns a representation of that string in the native string type, encoding and decoding where necessary. This assumes ASCII unless told otherwise. """ if isinstance(string, builtin_str): out = string else: if is_py2: out = string.encode(encoding) else: out = string.decode(encoding) return out def unicode_is_ascii(u_string): """Determine if unicode string only contains ASCII characters. :param str u_string: unicode string to check. Must be unicode and not Python 2 `str`. :rtype: bool """ assert isinstance(u_string, str) try: u_string.encode('ascii') return True except UnicodeEncodeError: return False
Close