def collect_results(self): return_val = None for _ in self.host_list: return_val = self.queue.get() if return_val: break if return_val: if isTuple(return_val): self.finish(*return_val) elif isStr(return_val): self.finish(return_val) else: code_error('collect_results() found non-tuple / non-string on que')
def collect_results(self): return_val = None for _ in self.host_list: return_val = self.que.get() if return_val: break if return_val: if isTuple(return_val): self.finish(*return_val) elif isStr(return_val): self.finish(return_val) else: code_error('collect_results() found non-tuple / non-string on que')