3 K”Re” ã @ s* d dl Z d dlmZ G dd„ dejƒZdS )é 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 ú�/builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/command/upload.pyr s zupload.finalize_optionsc C s2 yt dƒ}|j| j| jƒS tk r, Y nX dS )zM Attempt to load password from keyring. Suppress Exceptions. ÚkeyringN)Ú __import__Úget_passwordÚ repositoryr Ú Exception)r r r r r r s z"upload._load_password_from_keyringc C s&