Your IP : 18.222.118.236


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

�
�Rec@s�dZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZm
Z
mZmZddlmZdd	lmZdd
lmZddlmZddlmZmZmZdd
lmZmZmZm Z m!Z!m"Z"m#Z#ddl$m%Z%m&Z&ddl'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1ddl2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>ddl2m?Z@ddlAmBZBeBjCeBjDeBjEeBjFeBjGfZHdZIddZJdZKdeLfd��YZMdeLfd��YZNdeNfd��YZOdeMeNfd��YZPdeLfd ��YZQdS(!s`
requests.models
~~~~~~~~~~~~~~~

This module contains the primary objects that power Requests.
i����N(tRequestField(tencode_multipart_formdata(t	parse_url(tDecodeErrortReadTimeoutErrort
ProtocolErrortLocationParseError(tUnsupportedOperationi(t
default_hooks(tCaseInsensitiveDict(t
HTTPBasicAuth(tcookiejar_from_dicttget_cookie_headert_copy_cookie_jar(t	HTTPErrort
MissingSchemat
InvalidURLtChunkedEncodingErrortContentDecodingErrortConnectionErrortStreamConsumedError(tto_native_stringtunicode_is_ascii(
tguess_filenametget_auth_from_urltrequote_uritstream_decode_response_unicodetto_key_val_listtparse_header_linkstiter_slicestguess_json_utft	super_lentcheck_header_validity(tCallabletMappingt	cookielibt
urlunparseturlsplitt	urlencodetstrtbytestis_py2tchardettbuiltin_strt
basestring(tjson(tcodesii
iitRequestEncodingMixincBs5eZed��Zed��Zed��ZRS(cCssg}t|j�}|j}|s-d}n|j|�|j}|rf|jd�|j|�ndj|�S(sBuild the path URL to use.t/t?t(R%turltpathtappendtquerytjoin(tselfR3tpR4R6((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pytpath_url=s		
	
cCst|ttf�r|St|d�r,|St|d�rg}x�t|�D]�\}}t|t�syt|d�r�|g}nxl|D]d}|dk	r�|jt|t�r�|jd�n|t|t�r�|jd�n|f�q�q�WqNWt	|dt
�S|SdS(s�Encode parameters in a piece of data.

        Will successfully encode parameters when passed as a dict or a list of
        2-tuples. Order is retained if data is a list of 2-tuples but arbitrary
        if parameters are supplied as a dict.
        treadt__iter__sutf-8tdoseqN(t
isinstanceR'R(thasattrRR,tNoneR5tencodeR&tTrue(tdatatresulttktvstv((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt_encode_paramsRs 	
!3c
Cs�|std��nt|t�r3td��ng}t|pEi�}t|pWi�}x�|D]�\}}t|t�s�t|d�r�|g}nx�|D]�}|d
k	r�t|t�s�t|�}n|jt|t�r�|j	d�n|t|t�r|j
d�n|f�q�q�WqdWx<|D]4\}}d
}d
}	t|ttf�r�t
|�dkr�|\}
}q�t
|�dkr�|\}
}}q�|\}
}}}	nt|�p�|}
|}t|tttf�r�|}n6t|d�r|j�}n|d
kr#q3n|}td|d	|d
|
d|	�}
|
jd|�|j|
�q3Wt|�\}}||fS(s�Build the body for a multipart/form-data request.

        Will successfully encode files when passed as a dict or a list of
        tuples. Order is retained if data is a list of tuples but arbitrary
        if parameters are supplied as a dict.
        The tuples may be 2-tuples (filename, fileobj), 3-tuples (filename, fileobj, contentype)
        or 4-tuples (filename, fileobj, contentype, custom_headers).
        sFiles must be provided.sData must not be a string.R<sutf-8iiR;tnameRCtfilenametheaderstcontent_typeN(t
ValueErrorR>R,RR?R@R(R'R5tdecodeRAttupletlisttlenRt	bytearrayR;Rtmake_multipartR(tfilesRCt
new_fieldstfieldstfieldtvalRGREtfttfhtfntfptfdatatrftbodyRL((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt
_encode_filesmsP

!3	!(t__name__t
__module__tpropertyR:tstaticmethodRHR`(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR/<stRequestHooksMixincBseZd�Zd�ZRS(cCs|||jkr"td|��nt|t�rH|j|j|�n0t|d�rx|j|jd�|D��ndS(sProperly register a hook.s1Unsupported event specified, with event name "%s"R<css$|]}t|t�r|VqdS(N(R>R!(t.0th((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pys	<genexpr>�sN(thooksRMR>R!R5R?textend(R8teventthook((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt
register_hook�scCs5y|j|j|�tSWntk
r0tSXdS(siDeregister a previously registered hook.
        Returns True if the hook existed, False if not.
        N(RhtremoveRBRMtFalse(R8RjRk((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pytderegister_hook�s

(RaRbRlRo(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyRe�s	tRequestcBsGeZdZddddddddddd�
Zd�Zd�ZRS(s{A user-created :class:`Request <Request>` object.

    Used to prepare a :class:`PreparedRequest <PreparedRequest>`, which is sent to the server.

    :param method: HTTP method to use.
    :param url: URL to send.
    :param headers: dictionary of headers to send.
    :param files: dictionary of {filename: fileobject} files to multipart upload.
    :param data: the body to attach to the request. If a dictionary or
        list of tuples ``[(key, value)]`` is provided, form-encoding will
        take place.
    :param json: json for the body to attach to the request (if files or data is not specified).
    :param params: URL parameters to append to the URL. If a dictionary or
        list of tuples ``[(key, value)]`` is provided, form-encoding will
        take place.
    :param auth: Auth handler or (user, pass) tuple.
    :param cookies: dictionary or CookieJar of cookies to attach to this request.
    :param hooks: dictionary of callback hooks, for internal usage.

    Usage::

      >>> import requests
      >>> req = requests.Request('GET', 'https://httpbin.org/get')
      >>> req.prepare()
      <PreparedRequest [GET]>
    c
Cs|dkrgn|}|dkr*gn|}|dkrBin|}|dkrZin|}|	dkrrin|	}	t�|_x6t|	j��D]"\}}|jd|d|�q�W||_||_||_||_	||_
|
|_||_||_
||_dS(NRjRk(R@RRhRPtitemsRltmethodR3RKRTRCR-tparamstauthtcookies(
R8RrR3RKRTRCRsRtRuRhR-RERG((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt__init__�s"								cCsd|jS(Ns<Request [%s]>(Rr(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt__repr__�scCsqt�}|jd|jd|jd|jd|jd|jd|jd|jd|j	d	|j
d
|j�
|S(sXConstructs a :class:`PreparedRequest <PreparedRequest>` for transmission and returns it.RrR3RKRTRCR-RsRtRuRh(tPreparedRequesttprepareRrR3RKRTRCR-RsRtRuRh(R8R9((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyRy�s											
N(RaRbt__doc__R@RvRwRy(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyRp�s
	RxcBs�eZdZd�Zddddddddddd�
Zd�Zd�Zd�Ze	d��Z
d�Zd�Zdd	�Z
d
�Zdd�Zd
�Zd�ZRS(s�The fully mutable :class:`PreparedRequest <PreparedRequest>` object,
    containing the exact bytes that will be sent to the server.

    Generated from either a :class:`Request <Request>` object or manually.

    Usage::

      >>> import requests
      >>> req = requests.Request('GET', 'https://httpbin.org/get')
      >>> r = req.prepare()
      >>> r
      <PreparedRequest [GET]>

      >>> s = requests.Session()
      >>> s.send(r)
      <Response [200]>
    cCsFd|_d|_d|_d|_d|_t�|_d|_dS(N(	R@RrR3RKt_cookiesR_RRht_body_position(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyRv#s					cCsk|j|�|j||�|j|�|j|�|j|||
�|j||�|j|	�dS(s6Prepares the entire request with the given parameters.N(tprepare_methodtprepare_urltprepare_headerstprepare_cookiestprepare_bodytprepare_autht
prepare_hooks(R8RrR3RKRTRCRsRtRuRhR-((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyRy4s


cCsd|jS(Ns<PreparedRequest [%s]>(Rr(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyRwFscCs�t�}|j|_|j|_|jdk	r?|jj�nd|_t|j�|_|j|_|j	|_	|j
|_
|S(N(RxRrR3RKR@tcopyR
R{R_RhR|(R8R9((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR�Is	'cCs7||_|jdk	r3t|jj��|_ndS(sPrepares the given HTTP method.N(RrR@Rtupper(R8Rr((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR}Ts	cCsSddlm}y"|j|dt�jd�}Wn|jk
rNt�nX|S(Ni����(tidnatuts46sutf-8(tpip._vendorR�RARBRNt	IDNAErrortUnicodeError(thostR�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt_get_idna_encoded_hostZs"
cCs�t|t�r!|jd�}ntr3t|�n	t|�}|j�}d|krz|j�jd�rz||_	dSy%t
|�\}}}}}}}	Wn"tk
r�}
t|
j
��nX|s�d}|jt|d��}t|��n|std|��nt|�sRy|j|�}Wqptk
rNtd��qpXn|jd�rptd��n|pyd	}|r�|d
7}n||7}|r�|dt|�7}n|s�d}ntrst|t�r�|jd�}nt|t�r
|jd�}nt|t�r.|jd�}nt|t�rO|jd�}nt|	t�rs|	jd�}	qsnt|ttf�r�t|�}n|j|�}
|
r�|r�d
||
f}q�|
}ntt|||d||	g��}||_	dS(sPrepares the given HTTP URL.tutf8t:thttpNsDInvalid URL {0!r}: No schema supplied. Perhaps you meant http://{0}?s Invalid URL %r: No host suppliedsURL has an invalid label.u*R2t@R0sutf-8s%s&%s(R>R(RNR)tunicodeR'tlstriptlowert
startswithR3RRRtargstformatRRRR�R�RARHRR$R@(R8R3RstschemeRtR�tportR4R6tfragmentteterrortnetloct
enc_params((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR~dsh"	%


		$cCsYt�|_|rUx@|j�D]/}t|�|\}}||jt|�<qWndS(s Prepares the given HTTP headers.N(R	RKRqR R(R8RKtheaderRItvalue((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR�s
cCsd
}d
}|rX|d
k	rXd}tj|�}t|t�sX|jd�}qXntt|d�t|tt	t
tf�g�}|r]yt|�}Wn t
ttfk
r�d
}nX|}t|dd
�d
k	ry|j�|_Wqttfk
rt�|_qXn|r1td��n|rMt|�|jd<q�d|jd<n�|r~|j||�\}}nE|r�|j|�}t|t�s�t|d	�r�d
}q�d
}n|j|�|r�d|jkr�||jd<n||_d
S(s"Prepares the given HTTP body data.sapplication/jsonsutf-8R<ttells1Streamed bodies and files are mutually exclusive.sContent-LengthtchunkedsTransfer-EncodingR;s!application/x-www-form-urlencodedscontent-typesContent-TypeN(R@tcomplexjsontdumpsR>R(RAtallR?R,RPROR"Rt	TypeErrortAttributeErrorRtgetattrR�R|tIOErrortOSErrortobjecttNotImplementedErrorR+RKR`RHtprepare_content_lengthR_(R8RCRTR-R_RLt	is_streamtlength((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR��sJ"
		
cCsr|dk	r7t|�}|rnt|�|jd<qnn7|jdkrn|jjd�dkrnd|jd<ndS(s>Prepare Content-Length header based on request method and bodysContent-LengthtGETtHEADt0N(R�R�(R@RR+RKRrtget(R8R_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/requests/models.pyR�
s'R2cCs�|dkr6t|j�}t|�r-|nd}n|r�t|t�rlt|�dkrlt|�}n||�}|jj	|j�|j
|j�ndS(s"Prepares the given HTTP auth data.iN(R@RR3tanyR>RORQR
t__dict__tupdateR�R_(R8RtR3turl_authtr((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR�s!cCs_t|tj�r||_nt|�|_t|j|�}|dk	r[||jd<ndS(sPrepares the given HTTP cookie data.

        This function eventually generates a ``Cookie`` header from the
        given cookies using cookielib. Due to cookielib's design, the header
        will not be regenerated if it already exists, meaning this function
        can only be called once for the life of the
        :class:`PreparedRequest <PreparedRequest>` object. Any subsequent calls
        to ``prepare_cookies`` will have no actual effect, unless the "Cookie"
        header is removed beforehand.
        tCookieN(R>R#t	CookieJarR{RRR@RK(R8Rut
cookie_header((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR�-scCs5|p	g}x"|D]}|j|||�qWdS(sPrepares the given hooks.N(Rl(R8RhRj((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR�As
N(RaRbRzRvR@RyRwR�R}RdR�R~RR�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/requests/models.pyRxs				
	V	E	
	tResponsec
Bs7eZdZddddddddd	d
g
Zd�Zd�Zd
�Zd�Zd�Zd�Z	d�Z
d�Zd�Ze
d��Ze
d��Ze
d��Ze
d��Ze
d��Zded�Zeed"d�Ze
d��Ze
d��Zd�Ze
d��Zd �Zd!�ZRS(#shThe :class:`Response <Response>` object, which contains a
    server's response to an HTTP request.
    t_contenttstatus_codeRKR3thistorytencodingtreasonRutelapsedtrequestcCs�t|_t|_d|_d|_t�|_d|_d|_	d|_
g|_d|_t
i�|_tjd�|_d|_dS(Ni(RnR�t_content_consumedR@t_nextR�R	RKtrawR3R�R�R�RRutdatetimet	timedeltaR�R�(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyRvUs									cCs|S(N((R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt	__enter__�scGs|j�dS(N(tclose(R8R�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt__exit__�scs*�js�jn�fd��jD�S(Ncs%i|]}t�|d�|�qS(N(R�R@(Rftattr(R8(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pys
<dictcomp>�s	(R�tcontentt	__attrs__(R8((R8s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt__getstate__�s	
cCsQx*|j�D]\}}t|||�q
Wt|dt�t|dd�dS(NR�R�(RqtsetattrRBR@(R8tstateRIR�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt__setstate__�scCsd|jS(Ns<Response [%s]>(R�(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyRw�scCs|jS(skReturns True if :attr:`status_code` is less than 400.

        This attribute checks if the status code of the response is between
        400 and 600 to see if there was a client error or a server error. If
        the status code, is between 200 and 400, this will return True. This
        is **not** a check to see if the response code is ``200 OK``.
        (tok(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt__bool__�scCs|jS(skReturns True if :attr:`status_code` is less than 400.

        This attribute checks if the status code of the response is between
        400 and 600 to see if there was a client error or a server error. If
        the status code, is between 200 and 400, this will return True. This
        is **not** a check to see if the response code is ``200 OK``.
        (R�(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt__nonzero__�scCs
|jd�S(s,Allows you to use a response as an iterator.i�(titer_content(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR<�scCs'y|j�Wntk
r"tSXtS(sxReturns True if :attr:`status_code` is less than 400, False if not.

        This attribute checks if the status code of the response is between
        400 and 600 to see if there was a client error or a server error. If
        the status code is between 200 and 400, this will return True. This
        is **not** a check to see if the response code is ``200 OK``.
        (traise_for_statusRRnRB(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR��s
	
cCsd|jko|jtkS(s�True if this Response is a well-formed HTTP redirect that could have
        been processed automatically (by :meth:`Session.resolve_redirects`).
        tlocation(RKR�tREDIRECT_STATI(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pytis_redirect�scCs(d|jko'|jtjtjfkS(s@True if this Response one of the permanent versions of redirect.R�(RKR�R.tmoved_permanentlytpermanent_redirect(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pytis_permanent_redirect�scCs|jS(sTReturns a PreparedRequest for the next request in a redirect chain, if there is one.(R�(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pytnext�scCstj|j�dS(s7The apparent encoding, provided by the chardet library.R�(R*tdetectR�(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pytapparent_encoding�sics���fd�}�jr9t�jt�r9t��n5�dk	rnt�t�rntdt����nt	�j��}|�}�jr�|n|}|r�t
|��}n|S(s�Iterates over the response data.  When stream=True is set on the
        request, this avoids reading the content at once into memory for
        large responses.  The chunk size is the number of bytes it should
        read into memory.  This is not necessarily the length of each item
        returned as decoding can take place.

        chunk_size must be of type int or None. A value of None will
        function differently depending on the value of `stream`.
        stream=True will read data as it arrives in whatever size the
        chunks are received. If stream=False, data is returned as
        a single chunk.

        If decode_unicode is True, content will be decoded using the best
        available encoding based on the response.
        c3s�t�jd�r�y,x%�jj�dt�D]}|Vq.WWq�tk
r_}t|��q�tk
r}}t|��q�tk
r�}t	|��q�Xn.x+tr��jj
��}|s�Pn|Vq�Wt�_dS(Ntstreamtdecode_content(R?R�R�RBRRRRRRR;R�(tchunkR�(t
chunk_sizeR8(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pytgenerate�s 
		s.chunk_size must be an int, it is instead a %s.N(R�R>R�tboolRR@tintR�ttypeRR(R8R�tdecode_unicodeR�t
reused_chunkst
stream_chunkstchunks((R�R8s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR��s	ccs�d}x�|jd|d|�D]�}|dk	r>||}n|rV|j|�}n|j�}|r�|dr�|r�|dd|dkr�|j�}nd}x|D]}|Vq�WqW|dk	r�|VndS(s�Iterates over the response data, one line at a time.  When
        stream=True is set on the request, this avoids reading the
        content at once into memory for large responses.

        .. note:: This method is not reentrant safe.
        R�R�i����N(R@R�tsplitt
splitlinestpop(R8R�R�t	delimitertpendingR�tlinestline((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt
iter_liness
.

cCs�|jtkru|jr'td��n|jdksE|jdkrQd|_qudj|jt	��pld|_nt
|_|jS(s"Content of the response, in bytes.s2The content for this response was already consumediR2N(R�RnR�tRuntimeErrorR�R�R@R7R�tCONTENT_CHUNK_SIZERB(R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR�0s	$	cCs�d}|j}|js"td�S|jdkr=|j}nyt|j|dd�}Wn,ttfk
r�t|jdd�}nX|S(s�Content of the response, in unicode.

        If Response.encoding is None, encoding will be guessed using
        ``chardet``.

        The encoding of the response content is determined based solely on HTTP
        headers, following RFC 2616 to the letter. If you can take advantage of
        non-HTTP knowledge to make a better guess at the encoding, you should
        set ``r.encoding`` appropriately before accessing this property.
        R2terrorstreplaceN(R@R�R�R'R�tLookupErrorR�(R8R�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/requests/models.pyttextDs		
cKs�|jr}|jr}t|j�dkr}t|j�}|dk	r}y tj|jj|�|�SWqztk
rvqzXq}ntj|j	|�S(s�Returns the json-encoded content of a response, if any.

        :param \*\*kwargs: Optional arguments that ``json.loads`` takes.
        :raises ValueError: If the response body does not contain valid json.
        iN(
R�R�RQRR@R�tloadsRNtUnicodeDecodeErrorR�(R8tkwargsR�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR-js(

cCsj|jjd�}i}|rft|�}x9|D].}|jd�pR|jd�}|||<q1Wn|S(s8Returns the parsed header links of the response, if any.tlinktrelR3(RKR�R(R8R�tltlinksR�tkey((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR�s
cCs�d}t|jt�rWy|jjd�}Wq`tk
rS|jjd�}q`Xn	|j}d|jkozdknr�d|j||jf}n;d|jko�dknr�d|j||jf}n|r�t|d	|��nd
S(s+Raises :class:`HTTPError`, if one occurred.R2sutf-8s
iso-8859-1i�i�u%s Client Error: %s for url: %siXu%s Server Error: %s for url: %stresponseN(R>R�R(RNR�R�R3R(R8thttp_error_msgR�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR��s
	cCsH|js|jj�nt|jdd�}|dk	rD|�ndS(s�Releases the connection back to the pool. Once this method has been
        called the underlying ``raw`` object must not be accessed again.

        *Note: Should not normally need to be called explicitly.*
        trelease_connN(R�R�R�R�R@(R8R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyR��s
	N(RaRbRzR�RvR�R�R�R�RwR�R�R<RcR�R�R�R�R�RnR�tITER_CHUNK_SIZER@R�R�R�R-RR�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/requests/models.pyR�Ks2	/						
	
	7&		(RRzR�tsystencodings.idnat	encodingstpip._vendor.urllib3.fieldsRtpip._vendor.urllib3.filepostRtpip._vendor.urllib3.utilRtpip._vendor.urllib3.exceptionsRRRRtioRRhRt
structuresR	RtR
RuRRR
t
exceptionsRRRRRRRt_internal_utilsRRtutilsRRRRRRRRRR tcompatR!R"R#R$R%R&R'R(R)R*R+R,R-R�tstatus_codesR.tmovedtfoundtotherttemporary_redirectR�R�tDEFAULT_REDIRECT_LIMITR�RR�R/ReRpRxR�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/models.pyt<module>s@"4FR
rJ�<

?>