      """
      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:
 
</s> remove     def register(self, prefix, viewset, base_name=None):
        if base_name is None:
            base_name = self.get_default_base_name(viewset)
        self.registry.append((prefix, viewset, base_name))
 </s> add     def register(self, prefix, viewset, basename=None, base_name=None):
        if base_name is not None:
            msg = "The `base_name` argument has been deprecated in favor of `basename`."
            warnings.warn(msg, DeprecationWarning, 2)

        assert not (basename and base_name), (
            "Do not provide both the `basename` and `base_name` arguments.")

        if basename is None:
            basename = base_name

        if basename is None:
            basename = self.get_default_basename(viewset)
        self.registry.append((prefix, viewset, basename)) </s> remove     def get_default_base_name(self, viewset):
 </s> add     def get_default_basename(self, viewset): </s> remove regex_url_path_router.register(r'', RegexUrlPathViewSet, base_name='regex')
 </s> add regex_url_path_router.register(r'', RegexUrlPathViewSet, basename='regex') </s> remove     def get_default_base_name(self, viewset):
 </s> add     def get_default_basename(self, viewset): </s> remove naming_collisions_router.register(r'collision', NamingCollisionViewSet, base_name="collision")
 </s> add naming_collisions_router.register(r'collision', NamingCollisionViewSet, basename="collision")
class RenameRouterMethods(RenameMethodsBase):
    renamed_methods = (
        ('get_default_base_name', 'get_default_basename', DeprecationWarning),
    )


class BaseRouter(six.with_metaclass(RenameRouterMethods)):
      """
      return itertools.chain(*list_of_lists)
  
  
class RenameRouterMethods(RenameMethodsBase):
    renamed_methods = (
        ('get_default_base_name', 'get_default_basename', DeprecationWarning),
    )


class BaseRouter(six.with_metaclass(RenameRouterMethods)):
      def __init__(self):
          self.registry = []
  
      def register(self, prefix, viewset, base_name=None):
          if base_name is None:
keep keep keep keep replace keep keep keep keep keep
 Rename base_name => basename for consistency's sake (#5990)

* Rename base_name => basename for consistency

* Update tests to use basename 
rest_framework/routers.py