示例#1
0
 def _resource_names(self, size=None,
                     update_rsrc_data=True):
     candidates = self.properties[self.SERVERS]
     if size is None:
         return iter(candidates)
     return itertools.islice(candidates, size)
示例#2
0
 def _resource_names(self, size=None,
                     update_rsrc_data=True):
     candidates = self.properties[self.SERVERS]
     if size is None:
         return iter(candidates)
     return itertools.islice(candidates, size)