Skip to content

Commit

Permalink
Merge "Move deprecated argument to class variable in claimit.py"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Sep 2, 2017
2 parents 9e28ff6 + 29ef31f commit b82382a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/claimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ class ClaimRobot(WikidataBot):

"""A bot to add Wikidata claims."""

use_from_page = None

def __init__(self, generator, claims, exists_arg=''):
"""
Constructor.
Expand All @@ -82,7 +84,7 @@ def __init__(self, generator, claims, exists_arg=''):
@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')
Expand Down

0 comments on commit b82382a

Please sign in to comment.