jenkins-bot has submitted this change and it was merged.

Change subject: [IMPR] Show which special page is retrieved
......................................................................


[IMPR] Show which special page is retrieved

- If the operator is running multiple scripts maybe in a loop
  it is a good approach to inform him which special page is processed.
- The additional comment may be omitted then.

Change-Id: I85ec74cc626e00e3daaf9cad33f4664925b7219e
---
M scripts/redirect.py
1 file changed, 2 insertions(+), 4 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/redirect.py b/scripts/redirect.py
index 8677d14..cb12475 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -295,8 +295,7 @@
         elif self.page_title:
             yield self.page_title
         else:
-            # retrieve information from broken redirect special page
-            pywikibot.output(u'Retrieving special page...')
+            pywikibot.output('Retrieving broken redirect special page...')
             for page in self.site.preloadpages(self.site.broken_redirects()):
                 yield page
 
@@ -330,8 +329,7 @@
         elif self.page_title:
             yield self.page_title
         else:
-            # retrieve information from double redirect special page
-            pywikibot.output(u'Retrieving special page...')
+            pywikibot.output('Retrieving double redirect special page...')
             for page in self.site.preloadpages(self.site.double_redirects()):
                 yield page
 

-- 
To view, visit https://gerrit.wikimedia.org/r/279586
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I85ec74cc626e00e3daaf9cad33f4664925b7219e
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to