/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network
Edit: /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/cache.pyc (3606B)
Ñò
j“Rec @ sÛ d Z d d k Z d d k l Z d d k l Z d d k l Z d d k l Z d d k
l Z l Z d d k
l Z d d k l Z e o d d
k l Z l Z n d „ Z e d „ ƒ Z d
e f d „ ƒ YZ d S( s HTTP cache implementation.
iÿÿÿÿN( t contextmanager( t BaseCache( t FileCache( t Response( t adjacent_tmp_filet replace( t
ensure_dir( t MYPY_CHECK_RUNNING( t Optionalt Iteratorc C s t | d t ƒ S( Nt
from_cache( t getattrt False( t response( ( sL /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/cache.pyt
is_from_cache s c c s) y d VWn t t f j
o n Xd S( sv If we can't access the cache then we can just skip caching and process
requests as if caching wasn't enabled.
N( t OSErrort IOError( ( ( sL /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/cache.pyt suppressed_cache_errors s t
SafeFileCachec B s; e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( sw
A file based cache which is safe to use even when the target directory may
not be accessible or writable.
c C s7 | d j p
t d ‚ t t | ƒ i ƒ | | _ d S( Ns! Cache directory must not be None.( t Nonet AssertionErrort superR t __init__t directory( t selfR ( ( sL /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/cache.pyR * s c C s<