/usr/lib/python2.7/site-packages/pip/_vendor/cachecontrol
NameSizeModeActions
caches/-0755rm
adapter.py46080644editdlrm
adapter.pyc35230644editdlrm
adapter.pyo35230644editdlrm
cache.py7900644editdlrm
cache.pyc24010644editdlrm
cache.pyo24010644editdlrm
compat.py3800644editdlrm
compat.pyc6180644editdlrm
compat.pyo6180644editdlrm
controller.py130240644editdlrm
controller.pyc90780644editdlrm
controller.pyo90780644editdlrm
filewrapper.py25310644editdlrm
filewrapper.pyc26670644editdlrm
filewrapper.pyo26670644editdlrm
heuristics.py41410644editdlrm
heuristics.pyc59370644editdlrm
heuristics.pyo59370644editdlrm
serialize.py65360644editdlrm
serialize.pyc60960644editdlrm
serialize.pyo60960644editdlrm
wrapper.py4980644editdlrm
wrapper.pyc6960644editdlrm
wrapper.pyo6960644editdlrm
_cmd.py13200644editdlrm
_cmd.pyc20590644editdlrm
_cmd.pyo20590644editdlrm
__init__.py3020644editdlrm
__init__.pyc5830644editdlrm
__init__.pyo5830644editdlrm
Edit: /usr/lib/python2.7/site-packages/pip/_vendor/cachecontrol/cache.py (790B)
""" The cache object API for implementing caches. The default is a thread safe in-memory dictionary. """ from threading import Lock class BaseCache(object): def get(self, key): raise NotImplemented() def set(self, key, value): raise NotImplemented() def delete(self, key): raise NotImplemented() def close(self): pass class DictCache(BaseCache): def __init__(self, init_dict=None): self.lock = Lock() self.data = init_dict or {} def get(self, key): return self.data.get(key, None) def set(self, key, value): with self.lock: self.data.update({key: value}) def delete(self, key): with self.lock: if key in self.data: self.data.pop(key)