示例#1
0
 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,
     )
示例#2
0
文件: target.py 项目: hxer/note-ivre
 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}
示例#3
0
文件: target.py 项目: bemre/ivre
 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}