X7ROOT File Manager
Current Path:
/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/cachecontrol
opt
/
alt
/
python311
/
lib
/
python3.11
/
site-packages
/
pip
/
_vendor
/
cachecontrol
/
ðŸ“
..
📄
__init__.py
(302 B)
ðŸ“
__pycache__
📄
_cmd.py
(1.26 KB)
📄
adapter.py
(4.77 KB)
📄
cache.py
(805 B)
ðŸ“
caches
📄
compat.py
(695 B)
📄
controller.py
(13.82 KB)
📄
filewrapper.py
(2.47 KB)
📄
heuristics.py
(3.97 KB)
📄
serialize.py
(6.92 KB)
📄
wrapper.py
(690 B)
Editing: wrapper.py
from .adapter import CacheControlAdapter from .cache import DictCache def CacheControl( sess, cache=None, cache_etags=True, serializer=None, heuristic=None, controller_class=None, adapter_class=None, cacheable_methods=None, ): cache = DictCache() if cache is None else cache adapter_class = adapter_class or CacheControlAdapter adapter = adapter_class( cache, cache_etags=cache_etags, serializer=serializer, heuristic=heuristic, controller_class=controller_class, cacheable_methods=cacheable_methods, ) sess.mount("http://", adapter) sess.mount("https://", adapter) return sess
Upload File
Create Folder