core/lister: Make the tasks take an explicit lister_args argument
Avoid eating *all* arbitrary arguments and passing them along to the new_lister method.
This commit is contained in:
parent
d08ab241f5
commit
d88f1b60c9
6 changed files with 41 additions and 37 deletions
|
@ -10,8 +10,8 @@ from .lister import BitBucketLister
|
|||
|
||||
|
||||
class BitBucketListerTask(ListerTaskBase):
|
||||
def new_lister(self):
|
||||
return BitBucketLister(api_baseurl='https://api.bitbucket.org/2.0')
|
||||
def new_lister(self, *, api_baseurl='https://api.bitbucket.org/2.0'):
|
||||
return BitBucketLister(api_baseurl=api_baseurl)
|
||||
|
||||
|
||||
class IncrementalBitBucketLister(BitBucketListerTask,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue