$24 GRAYBYTE WORDPRESS FILE MANAGER $39

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/

HOME
Current File : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests//auth.pyc
�
�Rec@sdZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
mZmZddl
mZddlmZddlmZd	Zd
Zd�Zdefd
��YZdefd��YZdefd��YZdefd��YZdS(s]
requests.auth
~~~~~~~~~~~~~

This module contains the authentication handlers for Requests.
i����N(t	b64encodei(turlparsetstrt
basestring(textract_cookies_to_jar(tto_native_string(tparse_dict_headers!application/x-www-form-urlencodedsmultipart/form-datacCs�t|t�s:tjdj|�dt�t|�}nt|t�sztjdjt|��dt�t|�}nt|t�r�|jd�}nt|t�r�|jd�}ndt	t
dj||f��j��}|S(sReturns a Basic Auth string.s�Non-string usernames will no longer be supported in Requests 3.0.0. Please convert the object you've passed in ({!r}) to a string or bytes object in the near future to avoid problems.tcategorys�Non-string passwords will no longer be supported in Requests 3.0.0. Please convert the object you've passed in ({!r}) to a string or bytes object in the near future to avoid problems.tlatin1sBasic t:(
t
isinstanceRtwarningstwarntformattDeprecationWarningRttypetencodeRRtjointstrip(tusernametpasswordtauthstr((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/auth.pyt_basic_auth_strs&
	%tAuthBasecBseZdZd�ZRS(s4Base class that all auth implementations derive fromcCstd��dS(NsAuth hooks must be callable.(tNotImplementedError(tselftr((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/auth.pyt__call__Ks(t__name__t
__module__t__doc__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/auth.pyRHst
HTTPBasicAuthcBs2eZdZd�Zd�Zd�Zd�ZRS(s?Attaches HTTP Basic Authentication to the given Request object.cCs||_||_dS(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/requests/auth.pyt__init__Rs	cCs:t|jt|dd�k|jt|dd�kg�S(NRR(tallRtgetattrtNoneR(Rtother((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/auth.pyt__eq__VscCs||kS(N((RR$((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/auth.pyt__ne__\scCs t|j|j�|jd<|S(Nt
Authorization(RRRtheaders(RR((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/auth.pyR_s(RRRR 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/auth.pyROs
			t
HTTPProxyAuthcBseZdZd�ZRS(s=Attaches HTTP Proxy Authentication to a given Request object.cCs t|j|j�|jd<|S(NsProxy-Authorization(RRRR((RR((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/auth.pyRgs(RRRR(((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/auth.pyR)dstHTTPDigestAuthcBsVeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	s@Attaches HTTP Digest Authentication to the given Request object.cCs%||_||_tj�|_dS(N(RRt	threadingtlocalt
_thread_local(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/requests/auth.pyR os		cCsat|jd�s]t|j_d|j_d|j_i|j_d|j_d|j_	ndS(Ntinitti(
thasattrR-tTrueR.t
last_noncetnonce_counttchalR#tpost
num_401_calls(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/auth.pytinit_per_thread_stateuscs�|jjd}|jjd}|jjjd�}|jjjd�}|jjjd�}d"�|d"krzd}n|j�}|dks�|dkr�d�}	|	�nZ|d	kr�d
�}
|
�n<|dkr�d�}|�n|d
kr
d�}|�n�fd�}
�d"kr)d"Sd"}t|�}|jpGd}|jrg|d|j7}nd|j||j	f}d||f}�|�}�|�}||jj
kr�|jjd7_nd|j_d|jj}t|jj�j
d�}||j
d�7}|tj�j
d�7}|tjd�7}tj|�j�d }|dkr��d|||f�}n|s�|
|d||f�}nP|dks�d|jd�kr�d|||d|f}|
||�}nd"S||j_
d|j||||f}|r7|d|7}n|rN|d|7}n|re|d|7}n|r�|d ||f7}nd!|S(#s
        :rtype: str
        trealmtnoncetqopt	algorithmtopaquetMD5sMD5-SESScSs4t|t�r!|jd�}ntj|�j�S(Nsutf-8(R
RRthashlibtmd5t	hexdigest(tx((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/auth.pytmd5_utf8�stSHAcSs4t|t�r!|jd�}ntj|�j�S(Nsutf-8(R
RRR>tsha1R@(RA((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/auth.pytsha_utf8�ssSHA-256cSs4t|t�r!|jd�}ntj|�j�S(Nsutf-8(R
RRR>tsha256R@(RA((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/auth.pytsha256_utf8�ssSHA-512cSs4t|t�r!|jd�}ntj|�j�S(Nsutf-8(R
RRR>tsha512R@(RA((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/auth.pytsha512_utf8�scs�d||f�S(Ns%s:%s((tstd(t	hash_utf8(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/auth.pyt<lambda>�R/t/t?s%s:%s:%ss%s:%sis%08xsutf-8iitautht,s%s:%s:%s:%s:%ss>username="%s", realm="%s", nonce="%s", uri="%s", response="%s"s
, opaque="%s"s, algorithm="%s"s
, digest="%s"s , qop="auth", nc=%s, cnonce="%s"s	Digest %sN(R-R4tgetR#tupperRtpathtqueryRRR2R3RRttimetctimetosturandomR>RDR@tsplit(RtmethodturlR8R9R:R;R<t
_algorithmRBRERGRItKDtentdigtp_parsedRTtA1tA2tHA1tHA2tncvalueRJtcnoncetrespdigtnoncebittbase((RLs�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/requests/auth.pytbuild_digest_headers~										!cKs|jrd|j_ndS(s)Reset num_401_calls counter on redirects.iN(tis_redirectR-R6(RRtkwargs((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/auth.pythandle_redirect�s	cKs�d|jkodkns/d|j_|S|jjdk	r]|jjj|jj�n|jj	dd�}d|j
�kr~|jjdkr~|jjd7_tjdd	tj
�}t|jd|d
d��|j_|j|j�|jj�}t|j|j|j�|j|j�|j|j|j�|jd<|jj||�}|jj|�||_|Sd|j_|S(
so
        Takes the given response and tries digest-auth, if needed.

        :rtype: requests.Response
        i�i�iswww-authenticateR/tdigestisdigest tflagstcountR'N(tstatus_codeR-R6R5R#trequesttbodytseekR(RRtlowertretcompilet
IGNORECASERtsubR4tcontenttclosetcopyRt_cookiestrawtprepare_cookiesRjR[R\t
connectiontsendthistorytappend(RRRlts_authtpattprept_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/auth.pyt
handle_401�s.	$$
	cCs�|j�|jjr8|j|j|j�|jd<ny|jj�|j_	Wnt
k
rpd|j_	nX|jd|j
�|jd|j�d|j_|S(NR'tresponsei(R7R-R2RjR[R\R(RsttellR5tAttributeErrorR#t
register_hookR�RmR6(RR((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/auth.pyRs
"
cCs:t|jt|dd�k|jt|dd�kg�S(NRR(R!RR"R#R(RR$((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/auth.pyR%*scCs||kS(N((RR$((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/auth.pyR&0s(RRRR R7RjRmR�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/auth.pyR*ls		
	f		,		(RRXRvRVR>R+Rtbase64RtcompatRRRtcookiesRt_internal_utilsRtutilsRtCONTENT_TYPE_FORM_URLENCODEDtCONTENT_TYPE_MULTI_PARTRtobjectRRR)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/auth.pyt<module>s$	,


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.49 PM
root / linksafe
0755
__init__.py
4.36 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
__init__.pyc
4.508 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
__version__.py
0.431 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
__version__.pyc
0.651 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
_internal_utils.py
1.07 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
_internal_utils.pyc
1.719 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
adapters.py
21.043 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
adapters.pyc
20.495 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
api.py
6.344 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
api.pyc
7.807 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
auth.py
9.968 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
auth.pyc
12.123 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
certs.py
0.454 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
certs.pyc
0.677 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compat.py
1.997 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compat.pyc
1.983 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
cookies.py
17.998 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
cookies.pyc
26.12 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
exceptions.py
3.099 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
exceptions.pyc
8.83 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
help.py
3.494 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
help.pyc
3.598 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
hooks.py
0.739 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
hooks.pyc
1.475 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
models.py
33.483 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
models.pyc
32.536 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
packages.py
0.679 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
packages.pyc
0.638 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
sessions.py
28.629 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
sessions.pyc
24.677 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
status_codes.py
4.09 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
status_codes.pyc
6.324 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
structures.py
2.935 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
structures.pyc
6.69 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
utils.py
29.469 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
utils.pyc
29.946 KB
13 Nov 2023 9.11 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF