def recompute_svn_backend():
 global Client
 global has_svn_backend
 Client = None
 has_svn_backend = False
 required_module = None
 for backend_path in settings.SVNTOOL_BACKENDS:
  try:
   mod = __import__(six.binary_type(backend_path), fromlist=[u'Client', u'has_svn_backend'])
   if ((not hasattr(mod, u'has_svn_backend')) or (not hasattr(mod, u'Client'))):
    logging.error(u'Attempted to load invalid SVN backend %s', backend_path)
    continue
   has_svn_backend = mod.has_svn_backend
   if (has_svn_backend or (not required_module)):
    SVNTool.dependencies[u'modules'] = [mod.Client.required_module]
   if has_svn_backend:
    logging.info(u'Using %s backend for SVN', backend_path)
    Client = mod.Client
    break
  except ImportError:
   logging.error(u'Unable to load SVN backend %s', backend_path, exc_info=1)

def recompute_svn_backend ( ) : global Client global has_svn_backend Client = None has_svn_backend = False required_module = None for backend_path in settings . SVNTOOL_BACKENDS : try : mod = __import__ ( six . binary_type ( backend_path ) , fromlist = [ u'Client' , u'has_svn_backend' ] ) if ( ( not hasattr ( mod , u'has_svn_backend' ) ) or ( not hasattr ( mod , u'Client' ) ) ) : logging . error ( u'Attempted to load invalid SVN backend %s' , backend_path ) continue has_svn_backend = mod . has_svn_backend if ( has_svn_backend or ( not required_module ) ) : SVNTool . dependencies [ u'modules' ] = [ mod . Client . required_module ] if has_svn_backend : logging . info ( u'Using %s backend for SVN' , backend_path ) Client = mod . Client break except ImportError : logging . error ( u'Unable to load SVN backend %s' , backend_path , exc_info = 1 )
recomputes the svntool client backend to use .