
    k7i                     8    S r SSKrSSKJrJrJr   " S S5      rg)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   )delete_passwordget_passwordset_passwordc                   ,    \ rS rSrS rS rS rS rSrg)PasswordMgr   c                 ,    [         R                  " 5       $ N)getpassgetuser)selfrealmauthuris      F/home/james-whalen/.local/lib/python3.13/site-packages/keyring/http.pyget_usernamePasswordMgr.get_username   s          c                 >    U R                  X5      n[        XU5        g r   )r   r   )r   r   r   passwordusers        r   add_passwordPasswordMgr.add_password   s      0U(+r   c                     U R                  X5      n[        X5      nUc.  SU SU SU S3n[        R                  " U5      n[        XU5        X44$ )Nzpassword for @z for z: )r   r   r   r   )r   r   r   r   r   prompts         r   find_user_passwordPasswordMgr.find_user_password   s\      0,$TF!E7%yCFv.Hh/~r   c                 <    U R                  X5      n[        X5        g r   )r   r   )r   r   r   r   s       r   clear_passwordPasswordMgr.clear_password%   s      0$r    N)	__name__
__module____qualname____firstlineno__r   r   r   r    __static_attributes__r"   r   r   r   r      s    !,%r   r   )__doc__r    r   r   r   r   r"   r   r   <module>r*      s     9 9% %r   