� �fc@s9ddlZddlmZdejfd��YZdS(i����N(tuploadRcBs)eZdZd�Zd�Zd�ZRS(sa Override default upload behavior to obtain password in a variety of different ways. cCsPtjj|�|jp"tj�|_|jpF|j�pF|j�|_dS(N( torigRtfinalize_optionstusernametgetpasstgetusertpasswordt_load_password_from_keyringt_prompt_for_password(tself((s=/usr/lib/python2.7/site-packages/setuptools/command/upload.pyR s    cCs>y&td�}|j|j|j�SWntk r9nXdS(sM Attempt to load password from keyring. Suppress Exceptions. tkeyringN(t __import__t get_passwordt repositoryRt Exception(R R ((s=/usr/lib/python2.7/site-packages/setuptools/command/upload.pyRs   cCs,ytj�SWnttfk r'nXdS(sH Prompt for a password on the tty. Suppress Exceptions. N(RRtKeyboardInterrupt(R ((s=/usr/lib/python2.7/site-packages/setuptools/command/upload.pyR#s(t__name__t __module__t__doc__RRR(((s=/usr/lib/python2.7/site-packages/setuptools/command/upload.pyRs  (Rtdistutils.commandRR(((s=/usr/lib/python2.7/site-packages/setuptools/command/upload.pyts