Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/pip/_vendor/cachecontrol/__pycache__/controller.cpython-37.pyc
Назад
B �5�g�G � @ s� d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m Z mZmZ ddl mZ ddlmZmZ ddlmZ e r�dd l mZ dd lmZ ddlmZ ddlmZ e�e�Ze�d �ZdZddd�dd�Z G dd� d�Z!dS )z7 The httplib2 algorithms ported for use with requests. � )�annotationsN)�parsedate_tz)� TYPE_CHECKING� Collection�Mapping)�CaseInsensitiveDict)� DictCache�SeparateBodyBaseCache)� Serializer)�Literal)�PreparedRequest)�HTTPResponse)� BaseCachez9^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?)i- i4 �strztuple[str, str, str, str, str])�uri�returnc C s@ t �| �}|dk st�|�� }|d |d |d |d |d fS )z�Parses a URI using the regex given in Appendix B of RFC 3986. (scheme, authority, path, query, fragment) = parse_uri(uri) N� � � � � )�URI�match�AssertionError�groups)r r r � r �D/tmp/pip-install-251nq386/pip/pip/_vendor/cachecontrol/controller.py� parse_uri% s r c @ s� e Zd ZdZd.ddddd�d d �Zeddd�d d��Zeddd�dd��Zddd�dd�Zddd�dd�Z ddd�dd�Z ddd�dd �Zd/ddd!d"d#d$d%�d&d'�Zd0dd!d"dd$d(�d)d*�Z dd!d!d+�d,d-�ZdS )1�CacheControllerz4An interface to see if request should cached or not.NTzBaseCache | None�boolzSerializer | NonezCollection[int] | None)�cache�cache_etags� serializer�status_codesc C s4 |d krt � n|| _|| _|p"t� | _|p,d| _d S )N)�� �� i, i- i4 )r r r! r r"