jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] nowcommons: Correct method call ......................................................................
[FIX] nowcommons: Correct method call
In 9568cb654e1ce7fc67cbb6d4971094f3220e0ccc some pagegenerators were replaced by method calls of the object, including changing from ReferringPageGenerator to page.getReferences. But one parameter was overlooked which is named differently in page.getReferences compared to ReferringPageGenerator.
Change-Id: I7568960587b5392f54d1960315fdd53e9d98bfcc --- M scripts/nowcommons.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/nowcommons.py b/scripts/nowcommons.py index 3125fdb..a6270c5 100644 --- a/scripts/nowcommons.py +++ b/scripts/nowcommons.py @@ -271,7 +271,7 @@ nowCommonsTemplates = [pywikibot.Page(self.site, title, ns=10) for title in self.ncTemplates()] - gens = [t.getReferences(followRedirects=True, namespaces=[6], + gens = [t.getReferences(follow_redirects=True, namespaces=[6], onlyTemplateInclusion=True) for t in nowCommonsTemplates] gen = pg.CombinedPageGenerator(gens)
pywikibot-commits@lists.wikimedia.org