upload_2_2.py 377 B

1234567891011121314
  1. def finalize_options(self):
  2. orig.upload.finalize_options(self)
  3. self.username = (
  4. self.username or
  5. getpass.getuser()
  6. )
  7. # Attempt to obtain password. Short circuit evaluation at the first
  8. # sign of success.
  9. self.password = (
  10. self.password or
  11. self._load_password_from_keyring() or
  12. self._prompt_for_password()
  13. )