jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/804704 )

Change subject: [IMPR] Do not show a warning if password is entered
......................................................................

[IMPR] Do not show a warning if password is entered

Bug: T178061
Change-Id: I45a664b2f322a81230bf9d230e5c7e4425c9dc8e
---
M pywikibot/login.py
1 file changed, 12 insertions(+), 2 deletions(-)

Approvals:
  Matěj Suchánek: Looks good to me, but someone else must approve
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/pywikibot/login.py b/pywikibot/login.py
index e284b98..97d6dbc 100644
--- a/pywikibot/login.py
+++ b/pywikibot/login.py
@@ -287,9 +287,9 @@
                 'Password for user {name} on {site} (no characters will be '
                 'shown):'.format(name=self.login_name, site=self.site),
                 password=True)
+        else:
+            pywikibot.info(f'Logging in to {self.site} as {self.login_name}')

-        pywikibot.info('Logging in to {site} as {name}'
-                       .format(name=self.login_name, site=self.site))
         try:
             self.login_to_site()
         except APIError as e:

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/804704
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I45a664b2f322a81230bf9d230e5c7e4425c9dc8e
Gerrit-Change-Number: 804704
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <i...@gno.de>
Gerrit-Reviewer: Dvorapa <dvor...@seznam.cz>
Gerrit-Reviewer: Matěj Suchánek <matejsuchane...@gmail.com>
Gerrit-Reviewer: Xqt <i...@gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4...@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org
To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org

Reply via email to