jenkins-bot has submitted this change and it was merged.
Change subject: Remove 'bot' from kwargs checking where it has been defined
explicitly
......................................................................
Remove 'bot' from kwargs checking where it has been defined explicitly
Change-Id: I563953578f0ca425f1e0ef1e757a8b0b6b70c1c7
---
M pywikibot/site.py
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
FelixReimann: Looks good to me, but someone else must approve
Ladsgroup: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index 00a0104..1b1f1d6 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -3466,7 +3466,7 @@
params['baserevid'] = kwargs['baserevid']
params['token'] = self.token(pywikibot.Page(self, u'Main Page'),
'edit') # Use a dummy page
for arg in kwargs:
- if arg in ['bot', 'clear', 'data', 'exclude',
'summary']:
+ if arg in ['clear', 'data', 'exclude',
'summary']:
params[arg] = kwargs[arg]
params['data'] = json.dumps(data)
req = api.Request(site=self, **params)
@@ -3569,7 +3569,7 @@
}
params['snaks'] = json.dumps(snak)
for arg in kwargs:
- if arg in ['bot', 'baserevid', 'summary']:
+ if arg in ['baserevid', 'summary']:
params[arg] = kwargs[arg]
req = api.Request(site=self, **params)
@@ -3584,7 +3584,7 @@
params['claim'] = '|'.join(claim.snak for claim in claims)
params['token'] = self.token(pywikibot.Page(self, u'Main Page'),
'edit') # Use a dummy page
for kwarg in kwargs:
- if kwarg in ['bot', 'baserevid', 'summary']:
+ if kwarg in ['baserevid', 'summary']:
params[kwarg] = kwargs[kwarg]
req = api.Request(site=self, **params)
data = req.submit()
--
To view, visit
https://gerrit.wikimedia.org/r/81582
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I563953578f0ca425f1e0ef1e757a8b0b6b70c1c7
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: FelixReimann <felix(a)fex-it.de>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot