def _deprecated_configs(agentConfig):
 deprecated_checks = {}
 deprecated_configs_enabled = [v for (k, v) in OLD_STYLE_PARAMETERS if (len([l for l in agentConfig if l.startswith(k)]) > 0)]
 for deprecated_config in deprecated_configs_enabled:
  msg = ('Configuring %s in datadog.conf is not supported anymore. Please use conf.d' % deprecated_config)
  deprecated_checks[deprecated_config] = {'error': msg, 'traceback': None}
  log.error(msg)
 return deprecated_checks

def _deprecated_configs ( agentConfig ) : deprecated_checks = { } deprecated_configs_enabled = [ v for ( k , v ) in OLD_STYLE_PARAMETERS if ( len ( [ l for l in agentConfig if l . startswith ( k ) ] ) > 0 ) ] for deprecated_config in deprecated_configs_enabled : msg = ( 'Configuring %s in datadog.conf is not supported anymore. Please use conf.d' % deprecated_config ) deprecated_checks [ deprecated_config ] = { 'error' : msg , 'traceback' : None } log . error ( msg ) return deprecated_checks
warn about deprecated configs .