jenkins-bot has submitted this change and it was merged.
Change subject: new attribute repo for wikibase repository ......................................................................
new attribute repo for wikibase repository
Change-Id: Ibe99d95590a693cc69cc5a720096c552ab3378c3 --- M scripts/featured.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/featured.py b/scripts/featured.py index 07dd683..692062d 100644 --- a/scripts/featured.py +++ b/scripts/featured.py @@ -227,6 +227,7 @@ self.cache = dict() self.filename = None self.site = pywikibot.Site() + self.repo = self.site.data_repository() if self.getOption('fromlang') is True: # must be a list self.options['fromlang'] = False
@@ -248,7 +249,7 @@ item_no = featured_name['wikidata'][1] elif task == 'former': item_no = former_name['wikidata'][1] - dp = pywikibot.ItemPage(self.site.data_repository(), item_no) + dp = pywikibot.ItemPage(self.repo, item_no) dp.get() for key in sorted(dp.sitelinks.keys()): try:
pywikibot-commits@lists.wikimedia.org