Zhuyifei1999 has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/332939 )
Change subject: GeneratorFactory: make getCategory respect self.site ...................................................................... GeneratorFactory: make getCategory respect self.site Previous behavior is to generate the pages with the site in user-config, regardless of the value in self.site. Bug: T155687 Change-Id: Ic0400fd45b0f44dda65a6b69d6a9c4a7ed5d35ef --- M pywikibot/pagegenerators.py 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/39/332939/1 diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py index c290fd6..afb752c 100644 --- a/pywikibot/pagegenerators.py +++ b/pywikibot/pagegenerators.py @@ -544,6 +544,7 @@ categoryname = u'{0}:{1}'.format(self.site.namespace(14), categoryname) cat = pywikibot.Category(pywikibot.Link(categoryname, + source=self.site, defaultNamespace=14)) return cat, startfrom -- To view, visit https://gerrit.wikimedia.org/r/332939 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic0400fd45b0f44dda65a6b69d6a9c4a7ed5d35ef Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Zhuyifei1999 <zhuyifei1...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits