ó ïRec @ sÙ d Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z d d l m Z e r§ d d l m Z m 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( ( sŠ /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/network/cache.pyt is_from_cache s c c s' y d VWn t t f k r" 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( ( ( sŠ /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.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 s8 | d k s t d ƒ ‚ t t | ƒ j ƒ | | _ d S( Ns! Cache directory must not be None.( t Nonet AssertionErrort superR t __init__t directory( t selfR ( ( sŠ /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/network/cache.pyR * s c C s<