관리-도구
편집 파일: controller.cpython-311.pyc
� �ReE7 � � � d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m Z ddlmZ ej e� � Z ej d� � Zd � Z G d � de� � ZdS )z7 The httplib2 algorithms ported for use with requests. � N)�parsedate_tz)�CaseInsensitiveDict� )� DictCache)� Serializerz9^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?c � � 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 s ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/cachecontrol/controller.py� parse_urir sD � � �Y�Y�s�^�^� "� "� $� $�F��1�I�v�a�y�&��)�V�A�Y��q� �B�B� c �h � e Zd ZdZ dd�Zed� � � Zed� � � Zd� Zd� Z d � Z d d �Zd� ZdS )�CacheControllerz9An interface to see if request should cached or not. NTc �~ � |�t � � n|| _ || _ |p t � � | _ |pd| _ d S )N)�� �� i, �- )r �cache�cache_etagsr � serializer�cacheable_status_codes)�selfr r r �status_codess r �__init__zCacheController.__init__"