X7ROOT File Manager
Current Path:
/opt/hc_python/lib/python3.12/site-packages/requests
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
requests
/
ðŸ“
..
📄
__init__.py
(4.95 KB)
ðŸ“
__pycache__
📄
__version__.py
(435 B)
📄
_internal_utils.py
(1.46 KB)
📄
adapters.py
(26.81 KB)
📄
api.py
(6.3 KB)
📄
auth.py
(9.95 KB)
📄
certs.py
(429 B)
📄
compat.py
(1.77 KB)
📄
cookies.py
(18.15 KB)
📄
exceptions.py
(4.16 KB)
📄
help.py
(3.78 KB)
📄
hooks.py
(733 B)
📄
models.py
(34.59 KB)
📄
packages.py
(904 B)
📄
sessions.py
(29.78 KB)
📄
status_codes.py
(4.22 KB)
📄
structures.py
(2.84 KB)
📄
utils.py
(32.83 KB)
Editing: packages.py
import sys from .compat import chardet # This code exists for backwards compatibility reasons. # I don't like it either. Just look the other way. :) for package in ("urllib3", "idna"): locals()[package] = __import__(package) # This traversal is apparently necessary such that the identities are # preserved (requests.packages.urllib3.* is urllib3.*) for mod in list(sys.modules): if mod == package or mod.startswith(f"{package}."): sys.modules[f"requests.packages.{mod}"] = sys.modules[mod] if chardet is not None: target = chardet.__name__ for mod in list(sys.modules): if mod == target or mod.startswith(f"{target}."): imported_mod = sys.modules[mod] sys.modules[f"requests.packages.{mod}"] = imported_mod mod = mod.replace(target, "chardet") sys.modules[f"requests.packages.{mod}"] = imported_mod
Upload File
Create Folder