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

Change subject: Noisy dots for fixing moved page redirects.
......................................................................


Noisy dots for fixing moved page redirects.

Otherwise you didn't see any action for a long period and cannot
check whether the bot works or e.g. hangs. Single dots are printed.
Because the print statement prints a space on the end (py 2.X), there
has to be a backspace char "\b" in front of the next dot.

(unlike compat where you see any retrieved page)

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

Approvals:
  Merlijn van Deen: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/redirect.py b/scripts/redirect.py
index f2eec79..d8451f0 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -348,8 +348,10 @@
         move_gen = self.site.logevents(logtype="move", start=offset_time)
         if self.api_number:
             move_gen.set_maximum_items(self.api_number)
+        pywikibot.output('.', newline=False)
         for logentry in move_gen:
             moved_page = logentry.title()
+            pywikibot.output('.', newline=False)
             try:
                 if not moved_page.isRedirectPage():
                     continue

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id6ce19608e86b50d1720acb98d010c9b05dcb27e
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Pyfisch <[email protected]>
Gerrit-Reviewer: Russell Blau <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to