def verify_config(args):
 with open(os.devnull, 'w') as devnull:
  try:
   subprocess.check_call([args.apache_ctl, '-d', args.server_root, '-f', args.config_file, '-t'], stdout=devnull, stderr=subprocess.STDOUT)
  except OSError:
   sys.exit(_NO_APACHECTL)
  except subprocess.CalledProcessError:
   sys.exit('Syntax check from apachectl failed')

def verify_config ( args ) : with open ( os . devnull , 'w' ) as devnull : try : subprocess . check_call ( [ args . apache_ctl , '-d' , args . server_root , '-f' , args . config_file , '-t' ] , stdout = devnull , stderr = subprocess . STDOUT ) except OSError : sys . exit ( _NO_APACHECTL ) except subprocess . CalledProcessError : sys . exit ( 'Syntax check from apachectl failed' )
verifies server_root and config_file specify a valid config .