jenkins-bot has submitted this change and it was merged.
Change subject: ReplaceRobot: pass the 'site' argument to
textlib.getCategoryLinks()
......................................................................
ReplaceRobot: pass the 'site' argument to textlib.getCategoryLinks()
Change-Id: I4aa073a5bb759d35b960173bfaa1af98dd9c4f3f
---
M scripts/replace.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/replace.py b/scripts/replace.py
index b3f6470..cf131da 100755
--- a/scripts/replace.py
+++ b/scripts/replace.py
@@ -605,7 +605,7 @@
if hasattr(self, 'addedCat'):
# Fetch only categories in wikitext, otherwise the others will
# be explicitly added.
- cats = textlib.getCategoryLinks(new_text)
+ cats = textlib.getCategoryLinks(new_text, site=page.site)
if self.addedCat not in cats:
cats.append(self.addedCat)
new_text = textlib.replaceCategoryLinks(new_text,
--
To view, visit
https://gerrit.wikimedia.org/r/214920
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4aa073a5bb759d35b960173bfaa1af98dd9c4f3f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <ricordisamoa(a)openmailbox.org>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>