jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1008488?usp=email )
Change subject: [bugfix] Fix old Page.title parameter as_link ......................................................................
[bugfix] Fix old Page.title parameter as_link
Change-Id: I38b3b98bda5d70e1bd60563357cb35799fb449a7 --- M scripts/category_redirect.py 1 file changed, 15 insertions(+), 6 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/scripts/category_redirect.py b/scripts/category_redirect.py index 895949b..6f1b1e5 100755 --- a/scripts/category_redirect.py +++ b/scripts/category_redirect.py @@ -157,9 +157,9 @@ moved += 1 else: self.edit_requests.append({ - 'title': article.title(asLink=True, textlink=True), - 'oldcat': old_cat.title(asLink=True, textlink=True), - 'newcat': new_cat.title(asLink=True, textlink=True)} + 'title': article.title(as_link=True, textlink=True), + 'oldcat': old_cat.title(as_link=True, textlink=True), + 'newcat': new_cat.title(as_link=True, textlink=True)} )
if article.namespace() != 10: @@ -178,9 +178,9 @@ moved += 1 else: self.edit_requests.append({ - 'title': doc.title(asLink=True, textlink=True), - 'oldcat': old_cat.title(asLink=True, textlink=True), - 'newcat': new_cat.title(asLink=True, textlink=True)} + 'title': doc.title(as_link=True, textlink=True), + 'oldcat': old_cat.title(as_link=True, textlink=True), + 'newcat': new_cat.title(as_link=True, textlink=True)} )
if found:
pywikibot-commits@lists.wikimedia.org