      ret = ret.replace('{methodnamehyphen}', methodnamehyphen)
      return ret
  
  
  class BaseRouter(object):
      def __init__(self):
          self.registry = []
  
      def register(self, prefix, viewset, base_name=None):
          if base_name is None:
 
</s>
def flatten(list_of_lists):
    """
    Takes an iterable of iterables, returns a single iterable containing all items
    """
    return itertools.chain(*list_of_lists)


      ret = ret.replace('{methodnamehyphen}', methodnamehyphen)
      return ret
  
  
def flatten(list_of_lists):
    """
    Takes an iterable of iterables, returns a single iterable containing all items
    """
    return itertools.chain(*list_of_lists)


  class BaseRouter(object):
      def __init__(self):
          self.registry = []
  
      def register(self, prefix, viewset, base_name=None):
          if base_name is None:
keep keep keep add keep keep keep keep keep keep
 Raise exception when attempting to dynamically route to a method that is already routed to. Fixes #940
rest_framework/routers.py