def build_log_presenters(service_names, monochrome):
 prefix_width = max_name_width(service_names)
 def no_color(text):
  return text
 for color_func in cycle(([no_color] if monochrome else colors.rainbow())):
  (yield LogPresenter(prefix_width, color_func))

def build_log_presenters ( service_names , monochrome ) : prefix_width = max_name_width ( service_names ) def no_color ( text ) : return text for color_func in cycle ( ( [ no_color ] if monochrome else colors . rainbow ( ) ) ) : ( yield LogPresenter ( prefix_width , color_func ) )
return an iterable of functions .