def _get_finder(import_path):
 (module, attr) = import_path.rsplit('.', 1)
 try:
  mod = import_module(module)
 except ImportError as e:
  raise ImproperlyConfigured(('Error importing module %s: "%s"' % (module, e)))
 try:
  Finder = getattr(mod, attr)
 except AttributeError:
  raise ImproperlyConfigured(('Module "%s" does not define a "%s" class.' % (module, attr)))
 if (not issubclass(Finder, BaseFinder)):
  raise ImproperlyConfigured(('Finder "%s" is not a subclass of "%s"' % (Finder, BaseFinder)))
 return Finder()

def _get_finder ( import_path ) : ( module , attr ) = import_path . rsplit ( '.' , 1 ) try : mod = import_module ( module ) except ImportError as e : raise ImproperlyConfigured ( ( 'Error importing module %s: "%s"' % ( module , e ) ) ) try : Finder = getattr ( mod , attr ) except AttributeError : raise ImproperlyConfigured ( ( 'Module "%s" does not define a "%s" class.' % ( module , attr ) ) ) if ( not issubclass ( Finder , BaseFinder ) ) : raise ImproperlyConfigured ( ( 'Finder "%s" is not a subclass of "%s"' % ( Finder , BaseFinder ) ) ) return Finder ( )
imports the staticfiles finder class described by import_path .