jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/635236 )
Change subject: [FIX] edit summary ......................................................................
[FIX] edit summary
Default was changed from None to '' in Ib076abaa58a963634d9ee3d31cd2f05ed878a50b
Bug: T265968 Change-Id: Ie4f824620603b639fb015661523ed0a12f672920 --- M scripts/reflinks.py 1 file changed, 3 insertions(+), 3 deletions(-)
Approvals: Rubin: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/reflinks.py b/scripts/reflinks.py index c0aa235..be0d124 100755 --- a/scripts/reflinks.py +++ b/scripts/reflinks.py @@ -414,10 +414,10 @@ break if code: manual += '/{}'.format(code) - if self.opt.summary is None: - self.msg = i18n.twtranslate(self.site, 'reflinks-msg', locals()) - else: + if self.opt.summary: self.msg = self.opt.summary + else: + self.msg = i18n.twtranslate(self.site, 'reflinks-msg', locals())
local = i18n.translate(self.site, badtitles) if local:
pywikibot-commits@lists.wikimedia.org