jenkins-bot has submitted this change and it was merged. ( 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(-)
Approvals: Mpaa: Looks good to me, but someone else must approve Dalba: Looks good to me, approved jenkins-bot: Verified
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
pywikibot-commits@lists.wikimedia.org