def max_seeds_from_threads(threads):
 seeds = 0
 for background in threads:
  log.debug((u'Coming up next: %s' % background.tracker))
  background.join()
  seeds = max(seeds, background.tracker_seeds)
  log.debug((u'Current hightest number of seeds found: %s' % seeds))
 return seeds

def max_seeds_from_threads ( threads ) : seeds = 0 for background in threads : log . debug ( ( u'Coming up next: %s' % background . tracker ) ) background . join ( ) seeds = max ( seeds , background . tracker_seeds ) log . debug ( ( u'Current hightest number of seeds found: %s' % seeds ) ) return seeds
joins the threads and returns the maximum seeds found from any of them .