jenkins-bot has submitted this change and it was merged.
Change subject: Code cleaning of redirect.py ......................................................................
Code cleaning of redirect.py
Change-Id: I764cfbcc55c0cc2b585cc55ccf3a5874572b17cd --- M scripts/redirect.py 1 file changed, 1 insertion(+), 6 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/redirect.py b/scripts/redirect.py index 80de7bb..f76897e 100755 --- a/scripts/redirect.py +++ b/scripts/redirect.py @@ -708,8 +708,6 @@ def fix_double_or_delete_broken_redirects(self): # TODO: part of this should be moved to generator, the rest merged into # self.run() - # get reason for deletion text - delete_reason = i18n.twtranslate(self.site, 'redirect-remove-broken') count = 0 for (redir_name, code, target, final)\ in self.generator.get_redirects_via_api(maxlen=2): @@ -821,7 +819,4 @@ bot.run()
if __name__ == '__main__': - try: - main() - finally: - pywikibot.stopme() + main()
pywikibot-commits@lists.wikimedia.org