/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network
NameSizeModeActions
__pycache__/-0755rm
auth.py116520644editdlrm
auth.pyc87730644editdlrm
auth.pyo85540644editdlrm
cache.py23290644editdlrm
cache.pyc36060644editdlrm
cache.pyo35150644editdlrm
download.py51510644editdlrm
download.pyc59490644editdlrm
download.pyo59000644editdlrm
lazy_wheel.py81380644editdlrm
lazy_wheel.pyc102100644editdlrm
lazy_wheel.pyo101450644editdlrm
session.py152080644editdlrm
session.pyc119570644editdlrm
session.pyo119570644editdlrm
utils.py41720644editdlrm
utils.pyc18070644editdlrm
utils.pyo18070644editdlrm
xmlrpc.py18820644editdlrm
xmlrpc.pyc23340644editdlrm
xmlrpc.pyo22960644editdlrm
__init__.py500644editdlrm
__init__.pyc2320644editdlrm
__init__.pyo2320644editdlrm
Edit: /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pyc (8773B)
Ñò j“Rec@szdZddkZddklZlZddklZddklZ ddk l Z l Z l Z lZlZddklZeoeddklZlZlZlZlZdd klZdd klZlZeeeefZneie ƒZ!yddk"a"WnIe#j o da"n2e%j o%Z&e!i'd ee&ƒƒda"nXd „Z(d efd„ƒYZ)dS(s¡Network Authentication Helpers Contains interface (MultiDomainBasicAuth) and associated glue code for providing credentials in the context of network requests. iÿÿÿÿN(tAuthBaset HTTPBasicAuth(tget_netrc_auth(tparse(taskt ask_inputt ask_passwordtremove_auth_from_urltsplit_auth_netloc_from_url(tMYPY_CHECK_RUNNING(tDicttOptionaltTupletListtAny(tAuthInfo(tResponsetRequests*Keyring is skipped due to an exception: %sc Csô| pt odSy§y ti}Wntj onCXtid|ƒ|||ƒ}|dj o|i|ifSdS|o8tid|ƒti||ƒ}|o ||fSnWn1t j o%}ti dt |ƒƒdanXdS(s3Return the tuple auth for a given url from keyring.s'Getting credentials from keyring for %ss$Getting password from keyring for %ss*Keyring is skipped due to an exception: %sN( tkeyringtNonetget_credentialtAttributeErrortloggertdebugtusernametpasswordt get_passwordt Exceptiontwarningtstr(turlRRtcredRtexc((sK/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pytget_keyring_auth,s,   tMultiDomainBasicAuthcBsneZed d„Zd„Zeed„Zd„Zd„Zd„Z d„Z d„Z d„Z d „Z RS( cCs(||_||_h|_d|_dS(N(t promptingt index_urlst passwordsRt_credentials_to_save(tselfR#R$((sK/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pyt__init__Os   cCs^| p |i odSx?|iD]4}t|ƒidƒd}|i|ƒo|Sq"WdS(síReturn the original index URL matching the requested URL. Cached or dynamically generated credentials may work against the original index URL rather than just the netloc. The provided url should have had its username and password removed already. If the original index url had credentials then they will be included in the return value. Returns None if no matching index was found, or if --no-index was specified by the user. t/N(R$RRtrstript startswith(R'Rtutprefix((sK/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pyt_get_index_url[s  cCszt|ƒ\}}}|\}}|dj o"|dj otid|ƒ|S|i|ƒ} | o:t| ƒ} | o#| \} } } tid| ƒq n| oP| ddj o?| \}}|dj o"|dj otid|ƒ| Sn|o,t|ƒ} | otid|ƒ| Sn|o?t| |ƒp t||ƒ}|otid|ƒ|Sn||fS(s2Find and return credentials for the specified URL.sFound credentials in url for %ssFound index url %sis%Found credentials in index url for %ss!Found credentials in netrc for %ss#Found credentials in keyring for %sN(RRRRR.RR!(R't original_urlt allow_netrct allow_keyringRtnetlocturl_user_passwordRRt index_urlt index_infot_tindex_url_user_passwordt netrc_authtkr_auth((sK/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pyt_get_new_credentialsrs:       cCst|ƒ\}}}|ii|dƒ\}}|djo&|djo|i|ƒ\}}n|dj p |dj o1|pd}|pd}||f|i|RtFalseR!RtTrue(R'R2RtauthR((sK/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pyt_prompt_for_passwordàs) cCs%tptStdddgƒdjS(Ns#Save credentials to keyring [y/N]: tytn(RRER(R'((sK/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pyt _should_save_password_to_keyringìsc KsR|idjo|S|ip|Sti|iƒ}|i|iƒ\}}}d|_|dj oT|dj oG||f|i |i<|o&|i ƒo|i||f|_q»n|i |i i ƒt|pd|pdƒ|iƒ}|id|iƒ|io|id|iƒn|ii||}|ii|ƒ|S(Ni‘R;R@(t status_codeR#t urllib_parseturlparseRRHR2RR&R%RKtcontenttrawt release_connRtrequestRAt warn_on_401tsave_credentialst connectiontsendthistorytappend( R'tresptkwargstparsedRRtsaveRCtnew_resp((sK/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pyRBòs(   & cKs.|idjotid|iiƒndS(s6Response callback to warn about incorrect credentials.i‘s)401 Error, Credentials not correct for %sN(RLRRRRR(R'RYRZ((sK/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pyRS scKs•tdj p td‚tpdS|i}d|_|oU|idjoEytidƒti|ŒWq‘tj oti dƒq‘XndS(s1Response callback to save credentials on success.s'should never reach here without keyringNisSaving credentials to keyringsFailed to save credentials( RRR=R&RLRtinfot set_passwordRt exception(R'RYRZtcreds((sK/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pyRT(s   N(t__name__t __module__RFRR(R.R:R?RDRHRKRBRSRT(((sK/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pyR"Ms  2 )   . (*t__doc__tloggingtpip._vendor.requests.authRRtpip._vendor.requests.utilsRtpip._vendor.six.moves.urllibRRMtpip._internal.utils.miscRRRRRtpip._internal.utils.typingR ttypingR R R R Rt pip._internal.vcs.versioncontrolRtpip._vendor.requests.modelsRRRt Credentialst getLoggerRbRRt ImportErrorRRR RR!R"(((sK/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/auth.pyts, ((   !