Xqt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/279586
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 informed
- The additional comment may be omitted then.
Change-Id: I85ec74cc626e00e3daaf9cad33f4664925b7219e
---
M scripts/redirect.py
1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/86/279586/1
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: newchange
Gerrit-Change-Id: I85ec74cc626e00e3daaf9cad33f4664925b7219e
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits