jenkins-bot has submitted this change and it was merged.
Change subject: replace deprecated method Page.aslink() with Page.title() ......................................................................
replace deprecated method Page.aslink() with Page.title()
Change-Id: I3804b3571ce666176e1cf42f34f973d05bbcb90d --- M pywikibot/textlib.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py index 43dc65b..df37f95 100644 --- a/pywikibot/textlib.py +++ b/pywikibot/textlib.py @@ -843,9 +843,9 @@ if categories[0][0] == '[': catLinks = categories else: - catLinks = ['[[Category:' + category + ']]' for category in categories] + catLinks = ['[[Category:%s]]' % category for category in categories] else: - catLinks = [category.aslink(noInterwiki=True) + catLinks = [category.title(asLink=True, allowInterwiki=False) for category in categories]
if insite.category_on_one_line():