jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] call LoginManager with keyword arguments

Bug: T237501
Change-Id: I498b581aa92e3121ee5d13d19ee93eed66663697
---
M pywikibot/login.py
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pywikibot/login.py b/pywikibot/login.py
index 389ac12..5d0f51c 100644
--- a/pywikibot/login.py
+++ b/pywikibot/login.py
@@ -377,7 +377,8 @@
if isinstance(mwoauth, ImportError):
raise OAuthImpossible('mwoauth is not installed: %s.' % mwoauth)
assert password is not None and user is not None
- super(OauthLoginManager, self).__init__(None, False, site, None)
+ super(OauthLoginManager, self).__init__(password=None, site=site,
+ user=None)
if self.password:
pywikibot.warn('Password exists in password file for %s:%s.'
'Password is unnecessary and should be removed '

To view, visit change 551866. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I498b581aa92e3121ee5d13d19ee93eed66663697
Gerrit-Change-Number: 551866
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Huji <huji.huji@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)