'Takes a routing - if it\'s a string, it imports it, and if it\'s a
dict, converts it to a list of route()s. Used by this class and Include.'

@classmethod
def resolve_routing(cls, routing):

    if isinstance(routing, six.string_types):
        (module_name, variable_name) = routing.rsplit(u'.', 1)
        try:
            routing = getattr(importlib.import_module(module_name), variable_name)
        except (ImportError, AttributeError) as e:
            raise ImproperlyConfigured((u'Cannot    import    channel    routing    %r:    %s' % (routing, e)))
    if isinstance(routing, dict):
        routing = [Route(channel, consumer) for (channel, consumer) in routing.items()]
    return routing
