[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.191.219.238: ~ $
�
�t�_c@s(dZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZmZm
Z
mZmZddlmZmZmZmZdd	lmZmZmZdd
lmZmZddlmZddlmZm Z m!Z!dd
l"m#Z#m$Z$m%Z%m&Z&ddl'm(Z(ddl)m*Z*ddlm+Z+m,Z,m-Z-m.Z.m/Z/m0Z0ddl1m2Z2ddlm3Z3ej4dkr�y
ej5Z6Wne7k
r�ej8Z6nXn	ejZ6ed�Z9ed�Z:de;fd��YZ<de<fd��YZ=d�Z>dS(s�
requests.session
~~~~~~~~~~~~~~~~

This module provides a Session object to manage and persist settings across
requests (cookies, auth, proxies).
i����N(t	timedelta(tOrderedDicti(t_basic_auth_str(t	cookielibtis_py3turljointurlparsetMapping(tcookiejar_from_dicttextract_cookies_to_jartRequestsCookieJart
merge_cookies(tRequesttPreparedRequesttDEFAULT_REDIRECT_LIMIT(t
default_hookst
dispatch_hook(tto_native_string(tto_key_val_listtdefault_headerst
DEFAULT_PORTS(tTooManyRedirectst
InvalidSchematChunkedEncodingErrortContentDecodingError(tCaseInsensitiveDict(tHTTPAdapter(trequote_uritget_environ_proxiestget_netrc_authtshould_bypass_proxiestget_auth_from_urltrewind_body(tcodes(tREDIRECT_STATItwin32cCs�|dkr|S|dkr |St|t�o;t|t�sB|S|t|��}|jt|��g|j�D]\}}|dkrt|^qt}x|D]
}||=q�W|S(s�Determines appropriate setting for a given request, taking into account
    the explicit setting on that request, and the setting in the session. If a
    setting is a dictionary, they will be merged together using `dict_class`
    N(tNonet
isinstanceRRtupdatetitems(trequest_settingtsession_settingt
dict_classtmerged_settingtktvt	none_keystkey((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyt
merge_setting2s1
cCsZ|dks!|jd�gkr%|S|dksF|jd�gkrJ|St|||�S(s�Properly merges both requests and session hooks.

    This is necessary because when request_hooks == {'response': []}, the
    merge breaks Session hooks entirely.
    tresponseN(R$tgetR0(t
request_hookst
session_hooksR*((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pytmerge_hooksQs
!!tSessionRedirectMixincBsPeZd�Zd�Zededded�Zd�Zd�Z	d�Z
RS(cCs?|jr;|jd}tr.|jd�}nt|d�SdS(s7Receives a Response. Returns a redirect URI or ``None``tlocationtlatin1tutf8N(tis_redirecttheadersRtencodeRR$(tselftrespR7((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pytget_redirect_targetbs	

cCs�t|�}t|�}|j|jkr.tS|jdkrn|jdkrn|jdkrn|jdkrntS|j|jk}|j|jk}tj|jd�df}|r�|j|kr�|j|kr�tS|p�|S(sFDecide whether Authorization header should be removed when redirectingthttpiPthttpsi�N(iPN(i�N(	RthostnametTruetschemetportR$tFalseRR2(R=told_urltnew_urlt
old_parsedt
new_parsedtchanged_porttchanged_schemetdefault_port((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pytshould_strip_authwsc	ks4g}
|j|�}t|j�j}x|r/|j�}
|
j|�|
d|_y|jWn-tt	t
fk
r�|jjdt
�nXt|j�|jkr�tdj|j�d|��n|j�|jd�rt|j�}djt|j�|g�}nt|�}|jdkrI|rI|jd|�}n|jr^|j}n|j�}|js�t|jt|��}nt|�}t|�|
_|j|
|�|jtjtj fkr
d}x!|D]}|
j!j"|d�q�Wd|
_$n|
j!}|j"dd�t%|
j&||j�t'|
j&|j(�|
j)|
j&�|j*|
|�}|j+|
|�|
j,dk	o�d	|kp�d|k}|r�t-|
�n|
}|r�|Vq*|j.|d
|d|d|d|d|dt
|	�}t%|j(|
|j�|j|�}|Vq*WdS(sBReceives a Response. Returns a generator of Responses or Requests.itdecode_contentsExceeded {} redirects.R1s//t:ttfragmentsContent-LengthsContent-TypesTransfer-EncodingtCookietstreamttimeouttverifytcerttproxiestallow_redirectsN(sContent-LengthsContent-TypesTransfer-Encoding(/R?RturlRRtcopytappendthistorytcontentRRtRuntimeErrortrawtreadRFtlent
max_redirectsRtformattcloset
startswithtjoinRRDt_replacetgeturltnetlocRRtrebuild_methodtstatus_codeR!ttemporary_redirecttpermanent_redirectR;tpopR$tbodyR	t_cookiesRtcookiestprepare_cookiestrebuild_proxiestrebuild_autht_body_positionR tsend(R=R>treqRTRURVRWRXtyield_requeststadapter_kwargsthistRZtprevious_fragmenttprepared_requesttparsed_rurltparsedtpurged_headerstheaderR;t
rewindable((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pytresolve_redirects�sv	

!
!		
	
	cCs{|j}|j}d|kr@|j|jj|�r@|d=n|jrUt|�nd}|dk	rw|j|�ndS(s�When being redirected we may want to strip authentication from the
        request to avoid leaking credentials. This method intelligently removes
        and reapplies authentication where possible to avoid credential loss.
        t
AuthorizationN(R;RZRNtrequestt	trust_envRR$tprepare_auth(R=R}R1R;RZtnew_auth((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyRu�s		$
c
Cs5|dk	r|ni}|j}|j}t|�j}|j�}|jd�}t|d|�}|jr�|r�t	|d|�}	|	j||	jd��}
|
r�|j
||
�q�nd|kr�|d=nyt||�\}}Wntk
rd\}}nX|r1|r1t
||�|d<n|S(s�This method re-evaluates the proxy configuration by considering the
        environment variables. If we are redirected to a URL covered by
        NO_PROXY, we strip the proxy configuration. Otherwise, we set missing
        proxy keys for this URL (in case they were stripped by a previous
        redirect).

        This method also replaces the Proxy-Authorization header where
        necessary.

        :rtype: dict
        tno_proxytallsProxy-AuthorizationN(NN(R$R;RZRRDR[R2RR�Rt
setdefaultRtKeyErrorR(
R=R}RXR;RZRDtnew_proxiesR�tbypass_proxytenviron_proxiestproxytusernametpassword((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyRts*		

cCs�|j}|jtjkr0|dkr0d}n|jtjkrW|dkrWd}n|jtjkr~|dkr~d}n||_dS(s�When being redirected we may want to change the method of the request
        based on certain specs or browser behavior.
        tHEADtGETtPOSTN(tmethodRlR!t	see_othertfoundtmoved(R=R}R1R�((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyRk:s				N(t__name__t
__module__R?RNRFR$RCR�RuRtRk(((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyR6`s		m		)tSessioncBseZdZddddddddd	d
ddgZd
�Zd�Zd�Zd�Zd d d d d d d e	d d d d d d d�Z
d�Zd�Zd�Z
d d d�Zd d�Zd d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(!s�A Requests session.

    Provides cookie persistence, connection-pooling, and configuration.

    Basic Usage::

      >>> import requests
      >>> s = requests.Session()
      >>> s.get('https://httpbin.org/get')
      <Response [200]>

    Or as a context manager::

      >>> with requests.Session() as s:
      ...     s.get('https://httpbin.org/get')
      <Response [200]>
    R;RrtauthRXthookstparamsRVRWtadaptersRTR�RccCs�t�|_d|_i|_t�|_i|_t|_	t
|_d|_t
|_t
|_ti�|_t�|_|jdt��|jdt��dS(Nshttps://shttp://(RR;R$R�RXRR�R�RFRTRCRVRWRRcR�RRrRR�tmountR(R=((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyt__init__js								cCs|S(N((R=((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyt	__enter__�scGs|j�dS(N(Re(R=targs((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyt__exit__�scCs*|jpi}t|tj�s0t|�}nttt�|j�|�}|j}|jr�|r�|jr�t	|j
�}nt�}|jd|j
j�d|j
d|jd|jd|jdt|j|jdt�dt|j|j�d	t||j�d
|dt|j|j��
|S(s�Constructs a :class:`PreparedRequest <PreparedRequest>` for
        transmission and returns it. The :class:`PreparedRequest` has settings
        merged from the :class:`Request <Request>` instance and those of the
        :class:`Session`.

        :param request: :class:`Request` instance to prepare with this
            session's settings.
        :rtype: requests.PreparedRequest
        R�RZtfilestdatatjsonR;R*R�R�RrR�(RrR%Rt	CookieJarRRR
R�R�RRZR
tprepareR�tupperR�R�R�R0R;RR�R5R�(R=R�Rrtmerged_cookiesR�tp((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pytprepare_request�s*
							cCs�td|j�d|d|d|d|p-id|d|p?id|d	|d
|�
}|j|�}|poi}|j|j||
||�}i|	d6|
d6}|j|�|j||�}|S(
sConstructs a :class:`Request <Request>`, prepares it and sends it.
        Returns :class:`Response <Response>` object.

        :param method: method for the new :class:`Request` object.
        :param url: URL for the new :class:`Request` object.
        :param params: (optional) Dictionary or bytes to be sent in the query
            string for the :class:`Request`.
        :param data: (optional) Dictionary, list of tuples, bytes, or file-like
            object to send in the body of the :class:`Request`.
        :param json: (optional) json to send in the body of the
            :class:`Request`.
        :param headers: (optional) Dictionary of HTTP Headers to send with the
            :class:`Request`.
        :param cookies: (optional) Dict or CookieJar object to send with the
            :class:`Request`.
        :param files: (optional) Dictionary of ``'filename': file-like-objects``
            for multipart encoding upload.
        :param auth: (optional) Auth tuple or callable to enable
            Basic/Digest/Custom HTTP Auth.
        :param timeout: (optional) How long to wait for the server to send
            data before giving up, as a float, or a :ref:`(connect timeout,
            read timeout) <timeouts>` tuple.
        :type timeout: float or tuple
        :param allow_redirects: (optional) Set to True by default.
        :type allow_redirects: bool
        :param proxies: (optional) Dictionary mapping protocol or protocol and
            hostname to the URL of the proxy.
        :param stream: (optional) whether to immediately download the response
            content. Defaults to ``False``.
        :param verify: (optional) Either a boolean, in which case it controls whether we verify
            the server's TLS certificate, or a string, in which case it must be a path
            to a CA bundle to use. Defaults to ``True``.
        :param cert: (optional) if String, path to ssl client cert file (.pem).
            If Tuple, ('cert', 'key') pair.
        :rtype: requests.Response
        R�RZR;R�R�R�R�R�RrR�RURY(RR�R�tmerge_environment_settingsRZR&Rw(R=R�RZR�R�R;RrR�R�RURYRXR�RTRVRWR�Rxtpreptsettingstsend_kwargsR>((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyR��s*)	

cKs#|jdt�|jd||�S(s�Sends a GET request. Returns :class:`Response` object.

        :param url: URL for the new :class:`Request` object.
        :param \*\*kwargs: Optional arguments that ``request`` takes.
        :rtype: requests.Response
        RYR�(R�RCR�(R=RZtkwargs((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyR2scKs#|jdt�|jd||�S(s�Sends a OPTIONS request. Returns :class:`Response` object.

        :param url: URL for the new :class:`Request` object.
        :param \*\*kwargs: Optional arguments that ``request`` takes.
        :rtype: requests.Response
        RYtOPTIONS(R�RCR�(R=RZR�((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pytoptions!scKs#|jdt�|jd||�S(s�Sends a HEAD request. Returns :class:`Response` object.

        :param url: URL for the new :class:`Request` object.
        :param \*\*kwargs: Optional arguments that ``request`` takes.
        :rtype: requests.Response
        RYR�(R�RFR�(R=RZR�((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pythead,scKs|jd|d|d||�S(s�Sends a POST request. Returns :class:`Response` object.

        :param url: URL for the new :class:`Request` object.
        :param data: (optional) Dictionary, list of tuples, bytes, or file-like
            object to send in the body of the :class:`Request`.
        :param json: (optional) json to send in the body of the :class:`Request`.
        :param \*\*kwargs: Optional arguments that ``request`` takes.
        :rtype: requests.Response
        R�R�R�(R�(R=RZR�R�R�((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pytpost7scKs|jd|d||�S(suSends a PUT request. Returns :class:`Response` object.

        :param url: URL for the new :class:`Request` object.
        :param data: (optional) Dictionary, list of tuples, bytes, or file-like
            object to send in the body of the :class:`Request`.
        :param \*\*kwargs: Optional arguments that ``request`` takes.
        :rtype: requests.Response
        tPUTR�(R�(R=RZR�R�((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pytputDs
cKs|jd|d||�S(swSends a PATCH request. Returns :class:`Response` object.

        :param url: URL for the new :class:`Request` object.
        :param data: (optional) Dictionary, list of tuples, bytes, or file-like
            object to send in the body of the :class:`Request`.
        :param \*\*kwargs: Optional arguments that ``request`` takes.
        :rtype: requests.Response
        tPATCHR�(R�(R=RZR�R�((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pytpatchPs
cKs|jd||�S(s�Sends a DELETE request. Returns :class:`Response` object.

        :param url: URL for the new :class:`Request` object.
        :param \*\*kwargs: Optional arguments that ``request`` takes.
        :rtype: requests.Response
        tDELETE(R�(R=RZR�((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pytdelete\sc
Ks|jd|j�|jd|j�|jd|j�|jd|j�t|t�rjtd��n|jdt	�}|j
d�}|j}|jd|j
�}t�}|j||�}t�|}	td|	�|_td	|||�}|jr1x-|jD]}
t|j|
j|
j�qWnt|j||j�|r~|j|||�}g|D]}
|
^qi}ng}|r�|jd
|�|j�}||_n|s�y(t|j||dt	|��|_Wq�tk
r�q�Xn|s|jn|S(sISend a given PreparedRequest.

        :rtype: requests.Response
        RTRVRWRXs#You can only send PreparedRequests.RYRZtsecondsR1iRy(R�RTRVRWRXR%Rt
ValueErrorRoRCR2R�tget_adapterRZtpreferred_clockRwRtelapsedRR]R	RrR�R`R�tinserttnextt_nextt
StopIterationR^(
R=R�R�RYRTR�tadaptertstarttrR�R>tgenR]((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyRwfsF		
	 (

c
Cs|jr�|dk	r$|jd�nd}t|d|�}x*|j�D]\}}	|j||	�qIW|tks�|dkr�tjjd�p�tjjd�}q�nt	||j
�}t	||j�}t	||j�}t	||j
�}i|d6|d6|d6|d6S(	s^
        Check the environment and merge it with some settings.

        :rtype: dict
        R�tREQUESTS_CA_BUNDLEtCURL_CA_BUNDLERVRXRTRWN(R�R$R2RR'R�RCtostenvironR0RXRTRVRW(
R=RZRXRTRVRWR�tenv_proxiesR,R-((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyR��s	!cCsXx<|jj�D]+\}}|j�j|j��r|SqWtdj|���dS(s~
        Returns the appropriate connection adapter for the given URL.

        :rtype: requests.adapters.BaseAdapter
        s*No connection adapters were found for {!r}N(R�R'tlowerRfRRd(R=RZtprefixR�((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyR��scCs(x!|jj�D]}|j�qWdS(s+Closes all adapters and as such the sessionN(R�tvaluesRe(R=R-((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyRe�scCso||j|<g|jD]$}t|�t|�kr|^q}x'|D]}|jj|�|j|<qHWdS(swRegisters a connection adapter to a prefix.

        Adapters are sorted in descending order by prefix length.
        N(R�RbRo(R=R�R�R,tkeys_to_moveR/((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyR��s
4
cs�fd��jD�}|S(Ncs%i|]}t�|d�|�qS(N(tgetattrR$(t.0tattr(R=(sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pys
<dictcomp>�s	(t	__attrs__(R=tstate((R=sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyt__getstate__�scCs1x*|j�D]\}}t|||�q
WdS(N(R'tsetattr(R=R�R�tvalue((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyt__setstate__�sN(R�R�t__doc__R�R�R�R�R�R$RCR�R2R�R�R�R�R�R�RwR�R�ReR�R�R�(((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyR�Qs2		7			)D			
	
	K					cCst�S(sZ
    Returns a :class:`Session` for context-management.

    .. deprecated:: 1.0.0

        This method has been deprecated since version 1.0.0 and is only kept for
        backwards compatibility. New code should use :class:`~requests.sessions.Session`
        to create a session. This may be removed at a future date.

    :rtype: Session
    (R�(((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pytsession�s(?R�R�tsysttimetdatetimeRtcollectionsRR�RtcompatRRRRRRrRR	R
RtmodelsRR
RR�RRt_internal_utilsRtutilsRRRt
exceptionsRRRRt
structuresRR�RRRRRRR tstatus_codesR!R"tplatformtperf_counterR�tAttributeErrortclockR0R5tobjectR6R�R�(((sN/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.pyt<module>	s<("".

	���

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
.__version__.pyo.40009 File 605 B 0644
.adapters.pyo.40009 File 19.22 KB 0644
.api.pyo.40009 File 7.26 KB 0644
.auth.pyo.40009 File 10.61 KB 0644
.certs.pyo.40009 File 631 B 0644
.compat.pyo.40009 File 1.92 KB 0644
.cookies.pyo.40009 File 22.85 KB 0644
.exceptions.pyo.40009 File 7.32 KB 0644
.help.pyo.40009 File 3.36 KB 0644
.hooks.pyo.40009 File 1.23 KB 0644
.models.pyo.40009 File 29.39 KB 0644
.packages.pyo.40009 File 591 B 0644
.sessions.pyo.40009 File 22.74 KB 0644
.status_codes.pyo.40009 File 6.04 KB 0644
.structures.pyo.40009 File 5.54 KB 0644
.utils.pyo.40009 File 27.41 KB 0644
__init__.py File 4.36 KB 0644
__init__.pyc File 4.33 KB 0644
__init__.pyo File 4.16 KB 0644
__version__.py File 441 B 0644
__version__.pyc File 605 B 0644
__version__.pyo File 605 B 0644
_internal_utils.py File 1.07 KB 0644
_internal_utils.pyc File 1.54 KB 0644
_internal_utils.pyo File 1.49 KB 0644
adapters.py File 21.04 KB 0644
adapters.pyc File 19.22 KB 0644
adapters.pyo File 19.22 KB 0644
api.py File 6.34 KB 0644
api.pyc File 7.26 KB 0644
api.pyo File 7.26 KB 0644
auth.py File 9.97 KB 0644
auth.pyc File 10.61 KB 0644
auth.pyo File 10.61 KB 0644
certs.py File 465 B 0644
certs.pyc File 631 B 0644
certs.pyo File 631 B 0644
compat.py File 2 KB 0644
compat.pyc File 1.92 KB 0644
compat.pyo File 1.92 KB 0644
cookies.py File 18 KB 0644
cookies.pyc File 22.85 KB 0644
cookies.pyo File 22.85 KB 0644
exceptions.py File 3.1 KB 0644
exceptions.pyc File 7.32 KB 0644
exceptions.pyo File 7.32 KB 0644
help.py File 3.49 KB 0644
help.pyc File 3.36 KB 0644
help.pyo File 3.36 KB 0644
hooks.py File 757 B 0644
hooks.pyc File 1.23 KB 0644
hooks.pyo File 1.23 KB 0644
models.py File 33.48 KB 0644
models.pyc File 29.39 KB 0644
models.pyo File 29.39 KB 0644
packages.py File 695 B 0644
packages.pyc File 591 B 0644
packages.pyo File 591 B 0644
sessions.py File 28.63 KB 0644
sessions.pyc File 22.74 KB 0644
sessions.pyo File 22.74 KB 0644
status_codes.py File 4.09 KB 0644
status_codes.pyc File 6.04 KB 0644
status_codes.pyo File 6.04 KB 0644
structures.py File 2.93 KB 0644
structures.pyc File 5.54 KB 0644
structures.pyo File 5.54 KB 0644
utils.py File 29.47 KB 0644
utils.pyc File 27.41 KB 0644
utils.pyo File 27.41 KB 0644