jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/965275 )
Change subject: Change category output string to format string. ......................................................................
Change category output string to format string.
Change the category output string to a format string so that the category is correctly logged out to the user when generating a category graph.
Bug: T348709 Change-Id: I6d078ccabd5d69b143b4e4d0546aa7d96073d833 --- M scripts/category_graph.py 1 file changed, 15 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/category_graph.py b/scripts/category_graph.py index 0d875b2..58ae66d 100755 --- a/scripts/category_graph.py +++ b/scripts/category_graph.py @@ -71,7 +71,7 @@ cat_title = pywikibot.input( 'For which category do you want to create a graph?')
- pywikibot.info('Scanning {cat_title!r}') + pywikibot.info(f'Scanning {cat_title!r}') self.cat = pywikibot.Category(self.site, cat_title) self.to = args.to if self.to == '?':
pywikibot-commits@lists.wikimedia.org