jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/375433 )
Change subject: Move deprecated argument to class variable in claimit.py ......................................................................
Move deprecated argument to class variable in claimit.py
Change-Id: Ia455d2c49a9f53aa65307cd0f0542eedee8f10b5 --- M scripts/claimit.py 1 file changed, 3 insertions(+), 1 deletion(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/scripts/claimit.py b/scripts/claimit.py index 25796f5..845ad49 100755 --- a/scripts/claimit.py +++ b/scripts/claimit.py @@ -70,6 +70,8 @@
"""A bot to add Wikidata claims."""
+ use_from_page = None + def __init__(self, generator, claims, exists_arg=''): """ Constructor. @@ -82,7 +84,7 @@ @type exists_arg: str """ self.availableOptions['always'] = True - super(ClaimRobot, self).__init__(use_from_page=None) + super(ClaimRobot, self).__init__() self.generator = generator self.claims = claims self.exists_arg = ''.join(x for x in exists_arg.lower() if x in 'pqst')
pywikibot-commits@lists.wikimedia.org