Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/keyring/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/keyring/http.pyc

ó
F+ÞOc@s8dZddlZddlZdefd„ƒYZdS(s‚
urllib2.HTTPPasswordMgr object using the keyring, for use with the
urllib2.HTTPBasicAuthHandler.

usage:
    import urllib2
    handlers = [urllib2.HTTPBasicAuthHandler(PasswordMgr())]
    urllib2.install_opener(handlers)
    urllib2.urlopen(...)

This will prompt for a password if one is required and isn't already
in the keyring. Then, it adds it to the keyring for subsequent use.
iÿÿÿÿNtPasswordMgrcBs,eZd„Zd„Zd„Zd„ZRS(cCs
tjƒS(N(tgetpasstgetuser(tselftrealmtauthuri((s0/usr/lib/python2.7/dist-packages/keyring/http.pytget_usernamescCs)|j||ƒ}tj|||ƒdS(N(Rtkeyringtset_password(RRRtpasswordtuser((s0/usr/lib/python2.7/dist-packages/keyring/http.pytadd_passwordscCsl|j||ƒ}tj||ƒ}|dkrbdtƒ}tj|ƒ}tj|||ƒn||fS(Ns1password for %(user)s@%(realm)s for %(authuri)s: (RRtget_passwordtNonetvarsRR(RRRR
R	tprompt((s0/usr/lib/python2.7/dist-packages/keyring/http.pytfind_user_passwords
cCs&|j||ƒ}tj||ƒdS(N(RRtdelete_password(RRRR
((s0/usr/lib/python2.7/dist-packages/keyring/http.pytclear_password$s(t__name__t
__module__RRRR(((s0/usr/lib/python2.7/dist-packages/keyring/http.pyRs			
(t__doc__RRtobjectR(((s0/usr/lib/python2.7/dist-packages/keyring/http.pyt<module>
s