X7ROOT File Manager
Current Path:
/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/cachecontrol
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
pip
/
_vendor
/
cachecontrol
/
ðŸ“
..
📄
__init__.py
(465 B)
ðŸ“
__pycache__
📄
_cmd.py
(1.35 KB)
📄
adapter.py
(4.92 KB)
📄
cache.py
(1.5 KB)
ðŸ“
caches
📄
compat.py
(778 B)
📄
controller.py
(16.03 KB)
📄
filewrapper.py
(3.85 KB)
📄
heuristics.py
(4.06 KB)
📄
serialize.py
(6.94 KB)
📄
wrapper.py
(774 B)
Editing: wrapper.py
# SPDX-FileCopyrightText: 2015 Eric Larson # # SPDX-License-Identifier: Apache-2.0 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