jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/355905 )
Change subject: [IMPR] category.py/tidy: Show page title at the bottom of the output
......................................................................
[IMPR] category.py/tidy: Show page title at the bottom of the output
Bug: T166468
Change-Id: I7e03ff8da23f844ee8512e90bf4a7251ca947003
---
M scripts/category.py
1 file changed, 5 insertions(+), 3 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/scripts/category.py b/scripts/category.py
index 1bef740..d7854da 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -906,9 +906,9 @@
# Show the title of the page where the link was found.
# Highlight the title in purple.
pywikibot.output(color_format(
- 'Treating page {lightpurple}{0}{default}, '
+ 'Treating page {0}, '
'currently in {lightpurple}{1}{default}',
- article.title(), current_cat.title()))
+ article.title(asLink=True), current_cat.title()))
# Determine a reasonable amount of context to print
try:
@@ -951,7 +951,9 @@
StandardOption('remove this category tag', 'r'),
context_option,
StandardOption('save category as
"{0}"'.format(current_cat.title()), 'c'))
- choice = pywikibot.input_choice('Choice:', options, default='c')
+ choice = pywikibot.input_choice(color_format(
+ 'Choice for page {lightpurple}{0}{default}:\n',
+ article.title()), options, default='c')
if choice == 'c':
pywikibot.output(u'Saving category as %s' % current_cat.title())
--
To view, visit
https://gerrit.wikimedia.org/r/355905
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7e03ff8da23f844ee8512e90bf4a7251ca947003
Gerrit-PatchSet: 3
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>