(name, **kargs)
Allocate a named backend.
Allocate a named backend.
Allocate a named backend .
def allocate_backend(name, **kargs):
        """Allocate a named backend."""
        try:
            return Backend.backends[name](**kargs)
        except KeyError:
            names = ', '.join(["'%s'" % (_,) for _ in Backend.backend_choices()])
            raise ValueError("backend must be one of (%s)" % (names,))
def allocate_backend ( name , * * kargs ) : try : return Backend . backends [ name ] ( * * kargs ) except KeyError : names = ', ' . join ( [ "'%s'" % ( _ , ) for _ in Backend . backend_choices ( ) ] ) raise ValueError ( "backend must be one of (%s)" % ( names , ) )