X7ROOT File Manager
Current Path:
/lib/python3.6/site-packages/pip/_vendor/cachecontrol
lib
/
python3.6
/
site-packages
/
pip
/
_vendor
/
cachecontrol
/
ðŸ“
..
📄
__init__.py
(302 B)
ðŸ“
__pycache__
📄
_cmd.py
(1.29 KB)
📄
adapter.py
(4.5 KB)
📄
cache.py
(790 B)
ðŸ“
caches
📄
compat.py
(380 B)
📄
controller.py
(12.72 KB)
📄
filewrapper.py
(2.47 KB)
📄
heuristics.py
(4.04 KB)
📄
serialize.py
(6.38 KB)
📄
wrapper.py
(498 B)
Editing: wrapper.py
from .adapter import CacheControlAdapter from .cache import DictCache def CacheControl(sess, cache=None, cache_etags=True, serializer=None, heuristic=None): cache = cache or DictCache() adapter = CacheControlAdapter( cache, cache_etags=cache_etags, serializer=serializer, heuristic=heuristic, ) sess.mount('http://', adapter) sess.mount('https://', adapter) return sess
Upload File
Create Folder