3

Q'íc”ã@s*ddlZddlmZGdd„dejƒZdS)éN)Úuploadc@s(eZdZdZdd„Zdd„Zdd„ZdS)	rza
    Override default upload behavior to obtain password
    in a variety of different ways.
    cCs8tjj|ƒ|jptjƒ|_|jp0|jƒp0|jƒ|_dS)N)	ÚorigrÚfinalize_optionsÚusernameÚgetpassÚgetuserÚpasswordÚ_load_password_from_keyringÚ_prompt_for_password)Úself©rú?/tmp/pip-build-l_bcah40/setuptools/setuptools/command/upload.pyrs
zupload.finalize_optionscCs2ytdƒ}|j|j|jƒStk
r,YnXdS)zM
        Attempt to load password from keyring. Suppress Exceptions.
        ÚkeyringN)Ú
__import__Zget_passwordÚ
repositoryrÚ	Exception)rrrrr
r	s
z"upload._load_password_from_keyringcCs&ytjƒSttfk
r YnXdS)zH
        Prompt for a password on the tty. Suppress Exceptions.
        N)rrÚKeyboardInterrupt)rrrr
r
#szupload._prompt_for_passwordN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rr	r
rrrr
rs
r)rÚdistutils.commandrrrrrr
Ú<module>s