def get_connection(backend=None, fail_silently=False, **kwds):
 path = (backend or settings.EMAIL_BACKEND)
 try:
  (mod_name, klass_name) = path.rsplit('.', 1)
  mod = import_module(mod_name)
 except ImportError as e:
  raise ImproperlyConfigured(('Error importing email backend module %s: "%s"' % (mod_name, e)))
 try:
  klass = getattr(mod, klass_name)
 except AttributeError:
  raise ImproperlyConfigured(('Module "%s" does not define a "%s" class' % (mod_name, klass_name)))
 return klass(fail_silently=fail_silently, **kwds)

def get_connection ( backend = None , fail_silently = False , ** kwds ) : path = ( backend or settings . EMAIL_BACKEND ) try : ( mod_name , klass_name ) = path . rsplit ( '.' , 1 ) mod = import_module ( mod_name ) except ImportError as e : raise ImproperlyConfigured ( ( 'Error importing email backend module %s: "%s"' % ( mod_name , e ) ) ) try : klass = getattr ( mod , klass_name ) except AttributeError : raise ImproperlyConfigured ( ( 'Module "%s" does not define a "%s" class' % ( mod_name , klass_name ) ) ) return klass ( fail_silently = fail_silently , ** kwds )
return a boto connection for the service .