3
Q'íc ã @ s* d dl Z d dlmZ G dd dejZdS )é N)Úuploadc @ s( e Zd ZdZdd Zdd Zdd ZdS ) r za
Override default upload behavior to obtain password
in a variety of different ways.
c C s8 t jj| | jptj | _| jp0| j p0| j | _d S )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.pyr s
zupload.finalize_optionsc C s2 yt d}|j| j| jS tk
r, Y nX dS )zM
Attempt to load password from keyring. Suppress Exceptions.
ÚkeyringN)Ú
__import__Zget_passwordÚ
repositoryr Ú Exception)r r r r r