def set_displayer(config):
 if config.quiet:
  config.noninteractive_mode = True
  displayer = display_util.NoninteractiveDisplay(open(os.devnull, 'w'))
 elif config.noninteractive_mode:
  displayer = display_util.NoninteractiveDisplay(sys.stdout)
 else:
  displayer = display_util.FileDisplay(sys.stdout, config.force_interactive)
 zope.component.provideUtility(displayer)

def set_displayer ( config ) : if config . quiet : config . noninteractive_mode = True displayer = display_util . NoninteractiveDisplay ( open ( os . devnull , 'w' ) ) elif config . noninteractive_mode : displayer = display_util . NoninteractiveDisplay ( sys . stdout ) else : displayer = display_util . FileDisplay ( sys . stdout , config . force_interactive ) zope . component . provideUtility ( displayer )
set the displayer .