jenkins-bot has submitted this change and it was merged.
Change subject: support edit summary in Site.editSource and Site.changeClaimTarget ......................................................................
support edit summary in Site.editSource and Site.changeClaimTarget
Change-Id: Ic4b9da9d1e0a3a7e7aa1b9551b304d7cfed9e7dc --- M pywikibot/site.py 1 file changed, 3 insertions(+), 1 deletion(-)
Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index 7f2563b..231d510 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -3481,6 +3481,8 @@ ) if bot: params['bot'] = 1 + if 'summary' in kwargs: + params['summary'] = kwargs['summary'] params['token'] = self.token(claim, 'edit') if snaktype == 'value': params['value'] = json.dumps(claim._formatDataValue()) @@ -3532,7 +3534,7 @@ } params['snaks'] = json.dumps(snak) for arg in kwargs: - if arg in ['bot', 'lastrevid']: + if arg in ['bot', 'lastrevid', 'summary']: params[arg] = kwargs[arg]
req = api.Request(site=self, **params)
pywikibot-commits@lists.wikimedia.org