def _describe_certs(config, parsed_certs, parse_failures):
 out = []
 notify = out.append
 if ((not parsed_certs) and (not parse_failures)):
  notify('No certs found.')
 else:
  if parsed_certs:
   match = ('matching ' if (config.certname or config.domains) else '')
   notify('Found the following {0}certs:'.format(match))
   notify(_report_human_readable(config, parsed_certs))
  if parse_failures:
   notify('\nThe following renewal configuration files were invalid:')
   notify(_report_lines(parse_failures))
 disp = zope.component.getUtility(interfaces.IDisplay)
 disp.notification('\n'.join(out), pause=False, wrap=False)

def _describe_certs ( config , parsed_certs , parse_failures ) : out = [ ] notify = out . append if ( ( not parsed_certs ) and ( not parse_failures ) ) : notify ( 'No certs found.' ) else : if parsed_certs : match = ( 'matching ' if ( config . certname or config . domains ) else '' ) notify ( 'Found the following {0}certs:' . format ( match ) ) notify ( _report_human_readable ( config , parsed_certs ) ) if parse_failures : notify ( '\nThe following renewal configuration files were invalid:' ) notify ( _report_lines ( parse_failures ) ) disp = zope . component . getUtility ( interfaces . IDisplay ) disp . notification ( '\n' . join ( out ) , pause = False , wrap = False )
print information about the certs we know about .