Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1216766?usp=email )

Change subject: Fix extracting password line
......................................................................

Fix extracting password line

A password line is a tuple with 2-4 entries after evaluating
even if BotPassword is given.

Bug: T412074
Change-Id: Iccb764cbba0f36174b5657bffe296a45e1eda094
Signed-off-by: Xqt <[email protected]>
---
M pywikibot/login.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Xqt: Verified; Looks good to me, approved




diff --git a/pywikibot/login.py b/pywikibot/login.py
index 24c794b..eefb39d 100644
--- a/pywikibot/login.py
+++ b/pywikibot/login.py
@@ -287,7 +287,7 @@
                 continue

             if botpassword:
-                entry = (entry[0], BotPassword(*entry[1]))
+                entry = (*entry[:-1], BotPassword(*entry[-1]))

             code, family, username, password = (
                 self.site.code, self.site.family.name)[:4 - entry_len] + entry

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

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iccb764cbba0f36174b5657bffe296a45e1eda094
Gerrit-Change-Number: 1216766
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to