jenkins-bot has submitted this change and it was merged.
Change subject: page.categories() is no longer preferred to texlib.getCategoryLinks() ......................................................................
page.categories() is no longer preferred to texlib.getCategoryLinks()
the former uses the API, while the latter parses wikitext.
Change-Id: Ib87befc2f5dfa9002499758c1414122d5a88f47e --- M pywikibot/textlib.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py index 64dbf3c..3ac4aeb 100644 --- a/pywikibot/textlib.py +++ b/pywikibot/textlib.py @@ -649,8 +649,8 @@ def getCategoryLinks(text, site=None): """Return a list of category links found in text.
- List contains Category objects. - Do not call this routine directly, use Page.categories() instead. + @return: all category links found + @returntype: list of Category objects
""" result = []
pywikibot-commits@lists.wikimedia.org