          if 'root_renderers' in kwargs:
              self.root_renderers = kwargs.pop('root_renderers')
          else:
              self.root_renderers = list(api_settings.DEFAULT_RENDERER_CLASSES)
          super(DefaultRouter, self).__init__(*args, **kwargs)
  
      def get_api_root_view(self, api_urls=None):
          """
          Return a basic root view.
          """
 
</s> remove         super(FileField, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         urls = super(DefaultRouter, self).get_urls()
 </s> add         urls = super().get_urls() </s> remove         super(ReturnList, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         super(ReturnDict, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         super(SchemaView, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs)
        super().__init__(*args, **kwargs)
          if 'root_renderers' in kwargs:
              self.root_renderers = kwargs.pop('root_renderers')
          else:
              self.root_renderers = list(api_settings.DEFAULT_RENDERER_CLASSES)
        super().__init__(*args, **kwargs)
  
      def get_api_root_view(self, api_urls=None):
          """
          Return a basic root view.
          """
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
rest_framework/routers.py