Viewing File: /usr/lib/python3.6/site-packages/pip/_vendor/cachecontrol/__pycache__/controller.cpython-36.pyc
3
aj2 @ s d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m
Z
ddlmZ ej
eZejdZd d
ZG dd deZdS )
z7
The httplib2 algorithms ported for use with requests.
N)parsedate_tz)CaseInsensitiveDict ) DictCache)
Serializerz9^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?c C s0 t j| j }|d |d |d |d |d fS )zParses a URI using the regex given in Appendix B of RFC 3986.
(scheme, authority, path, query, fragment) = parse_uri(uri)
r )URImatchgroups)urir
r /usr/lib/python3.6/controller.py parse_uri s r c @ s\ e Zd ZdZdddZedd Zedd Zd
d Zdd
Z dd Z
dddZdd ZdS )CacheControllerz9An interface to see if request should cached or not.
NTc C s"