Your IP : 18.191.233.198


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pyc

�
�Rec@s�ddlZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
mZd�Zd�Z
defd	��YZdS(
i����N(tmsgpack(tCaseInsensitiveDicti(tHTTPResponsetpicklet	text_typecCstj|jd��S(Ntascii(tbase64t	b64decodetencode(tb((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pyt_b64_decode_bytesscCst|�jd�S(Ntutf8(R
tdecode(ts((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pyt_b64_decode_strst
SerializercBsSeZdd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	c	Cs]t|j�}|dkrB|jdt�}tj|�|_nii|d6td�|jj	�D��d6|j
d6|jd6t|j
�d6|jd6|jd	6d
6}i|d<d|kr;|djd�}xa|D]V}t|�j�}|jj|d�}|dk	r&t|�}n||d|<q�Wndjd
tj|dt�g�S(Ntdecode_contentubodycss-|]#\}}t|�t|�fVqdS(N(R(t.0tktv((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pys	<genexpr>3suheadersustatusuversionureasonustrictudecode_contenturesponseuvaryt,scc=4tuse_bin_type(RtheaderstNonetreadtFalsetiotBytesIOt_fptdicttitemststatustversionRtreasontstrictRtsplittstriptgettjoinRtdumpstTrue(	tselftrequesttresponsetbodytresponse_headerstdatatvaried_headerstheadertheader_value((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pyR's0	




cCs�|s
dSy|jdd�\}}Wntk
r?d}nX|d dkrc||}d}n|jdd�djd�}y#t|d	j|��||�SWntk
r�dSXdS(
NRiscc=0iscc=t=i����Rs
_loads_v{}(R#t
ValueErrorRtgetattrtformattAttributeError(R)R*R.tver((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pytloadsJs


	#
cCsd|jdi�krdSxE|jdi�j�D]+\}}|jj|d�|kr5dSq5W|djd�}td|dd�}|jdd	�d
kr�|jd�n||dd<ytj|�}Wn)tk
rtj|j	d��}nXt
d|dt|d�S(
s`Verify our vary headers match and construct a real urllib3
        HTTPResponse object.
        t*tvaryNR+R,R.Rstransfer-encodingttchunkedRtpreload_content(R%RRRtpopRRRt	TypeErrorRRR(R)R*tcachedR0tvaluetbody_rawRR,((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pytprepare_responsehs%
cCsdS(N((R)R*R.((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pyt	_loads_v0�scCs8ytj|�}Wntk
r'dSX|j||�S(N(RR8R3RC(R)R*R.R@((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pyt	_loads_v1�s

cCs�y%tjtj|�jd��}Wnttjfk
rBdSXt|dd�|dd<td�|ddj	�D��|dd<t
|dd�|dd<td�|dj	�D��|d<|j||�S(	NRR+R,css-|]#\}}t|�t|�fVqdS(N(R(RRR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pys	<genexpr>�sRR!css?|]5\}}t|�|dk	r0t|�n|fVqdS(N(RR(RRR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pys	<genexpr>�sR:(tjsonR8tzlibt
decompressRR3terrorR
RRRRC(R)R*R.R@((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pyt	_loads_v2�s%#cCsdS(N((R)R*R.((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pyt	_loads_v3�scCs>ytj|dt�}Wntk
r-dSX|j||�S(Ntraw(RR8RR3RC(R)R*R.R@((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pyt	_loads_v4�s

N(t__name__t
__module__RR'R8RCRDRERJRKRM(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pyRs4		&				(RRRFRGtpip._vendorRtpip._vendor.requests.structuresRtcompatRRRR
RtobjectR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.pyt<module>s		

?>