def CheckLocation():
 for url in (config_lib.CONFIG['Client.server_urls'] + config_lib.CONFIG['Client.control_urls']):
  if (('staging' in url) or ('localhost' in url)):
   return
 logging.error('Poolclient should only be run against test or staging.')
 exit()

def CheckLocation ( ) : for url in ( config_lib . CONFIG [ 'Client.server_urls' ] + config_lib . CONFIG [ 'Client.control_urls' ] ) : if ( ( 'staging' in url ) or ( 'localhost' in url ) ) : return logging . error ( 'Poolclient should only be run against test or staging.' ) exit ( )
checks that the poolclient is not accidentally ran against production .