HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/usr/lib/python3/dist-packages/keyring/__pycache__/http.cpython-38.pyc
U

ܦ�\��@s6dZddlZddlmZmZmZeZGdd�d�ZdS)a�
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.
�N�)�get_password�delete_password�set_passwordc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�PasswordMgrcCst��S�N)�getpassZgetuser)�self�realm�authuri�r�./usr/lib/python3/dist-packages/keyring/http.py�get_usernameszPasswordMgr.get_usernamecCs|�||�}t|||�dSr)rr)r	r
r�password�userrrr
�add_passwordszPasswordMgr.add_passwordcCsF|�||�}t||�}|dkr>dt�}t�|�}t|||�||fS)Nz1password for %(user)s@%(realm)s for %(authuri)s: )rr�varsrr)r	r
rrr�promptrrr
�find_user_passwords
�
zPasswordMgr.find_user_passwordcCs|�||�}t||�dSr)rr)r	r
rrrrr
�clear_password(szPasswordMgr.clear_passwordN)�__name__�
__module__�__qualname__rrrrrrrr
rs
r)	�__doc__r�rrr�typeZ
__metaclass__rrrrr
�<module>s