jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/361400 )
Change subject: Use relative reference to class attribute ......................................................................
Use relative reference to class attribute
Change-Id: I6d50ce8d5887e2c4c19f15edb7dbaeeb1949c41e --- M pywikibot/page.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/pywikibot/page.py b/pywikibot/page.py index 593c640..32663d6 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -4672,7 +4672,7 @@ if claim.getSnakType() == 'value': value = data['mainsnak']['datavalue']['value'] # The default covers string, url types - claim.target = Claim.TARGET_CONVERTER.get( + claim.target = cls.TARGET_CONVERTER.get( claim.type, lambda value, site: value)(value, site) if 'rank' in data: # References/Qualifiers don't have ranks claim.rank = data['rank']
pywikibot-commits@lists.wikimedia.org