jenkins-bot merged this change.
[bugfix] Highlight title only once
Change-Id: I335bf2431bd8cde5a085de5bbb85bb4a9ed75864
---
M scripts/replace.py
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/scripts/replace.py b/scripts/replace.py
index 44c3c83..a50c778 100755
--- a/scripts/replace.py
+++ b/scripts/replace.py
@@ -166,7 +166,6 @@
PY2,
UnicodeType
)
-from pywikibot.tools.formatter import color_format
if not PY2:
from queue import Queue
@@ -765,8 +764,7 @@
site=page.site)
# Show the title of the page we're working on.
# Highlight the title in purple.
- pywikibot.output(color_format(
- '\n\n>>> {lightpurple}{0}{default} <<<', page.title()))
+ self.current_page = page
pywikibot.showDiff(original_text, new_text, context=context)
if self.getOption('always'):
break
To view, visit change 591848. To unsubscribe, or for help writing mail filters, visit settings.