jenkins-bot submitted this change.

View Change

Approvals: Rubin: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
[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(-)

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:

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ie4f824620603b639fb015661523ed0a12f672920
Gerrit-Change-Number: 635236
Gerrit-PatchSet: 1
Gerrit-Owner: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: Rubin <rubin@wikimedia.ru>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged