관리-도구
편집 파일: controller.cpython-310.pyc
o ƚReE7 � @ s� d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m Z ddlmZ e� e�Ze�d�Zd d � ZG dd� de�ZdS ) z7 The httplib2 algorithms ported for use with requests. � N)�parsedate_tz)�CaseInsensitiveDict� )� DictCache)� Serializerz9^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?c C s0 t �| ��� }|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) r � � � � )�URI�match�groups)�urir � r ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/cachecontrol/controller.py� parse_uri s "r c @ s^ e Zd ZdZ ddd�Zedd� �Zedd � �Zd d� Zdd � Z dd� Z ddd�Zdd� ZdS )�CacheControllerz9An interface to see if request should cached or not. NTc C s4 |d u rt � n|| _|| _|pt� | _|pd| _d S )N)�� �� i, �- )r �cache�cache_etagsr � serializer�cacheable_status_codes)�selfr r r �status_codesr r r �__init__"