Page MenuHomePhabricator

category_graph.py does not log scanned directory correctly
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  1. Run the following in the terminal.
pwb.py -v category_graph -from Life

What happens?:

The following line is outputted.

Scanning {cat_title!r}

What should have happened instead?:

The expected line is...

Scanning 'Life'

Software version (skip for WMF-hosted wikis like Wikipedia): Pywikibot: [ssh] pywikibot-core.git 2023/10/11, 11:14:58, master

Event Timeline

The string where the scanned category is logged is not a format string. The proposed solution is to format the string. This will ensure that {cat_title!r} is replaced with the correct category.

Change 965275 had a related patch set uploaded (by Xqt; author: Enag2000):

[pywikibot/core@master] Change category output string to format string.

https://gerrit.wikimedia.org/r/965275

Change 965275 merged by jenkins-bot:

[pywikibot/core@master] Change category output string to format string.

https://gerrit.wikimedia.org/r/965275