def __init__(self, country, categories=None, rand=True, maxnbr=None, state=None): super().__init__( geoiputils.get_ranges_by_country(country), rand=rand, maxnbr=maxnbr, state=state, name='COUNTRY-%s' % country, categories=categories, )
def __init__(self, country, categories=None, rand=True, maxnbr=None, state=None): Target.__init__(self, geoiputils.get_ranges_by_country(country), rand=rand, maxnbr=maxnbr, state=state) if categories is None: categories = ['COUNTRY-%s' % country] self.infos = {'categories': categories}