          """
          Generate the list of URL patterns, including a default root view
          for the API, and appending `.json` style format suffixes.
          """
          urls = super(DefaultRouter, self).get_urls()
  
          if self.include_root_view:
              view = self.get_api_root_view(api_urls=urls)
              root_url = url(r'^$', view, name=self.root_view_name)
              urls.append(root_url)
 
</s> remove             if isinstance(urlconf, six.string_types):
 </s> add             if isinstance(urlconf, str): </s> remove         super(DefaultRouter, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove     (scheme, netloc, path, query, fragment) = urlparse.urlsplit(force_str(url))
    query_dict = urlparse.parse_qs(query, keep_blank_values=True)
 </s> add     (scheme, netloc, path, query, fragment) = parse.urlsplit(force_str(url))
    query_dict = parse.parse_qs(query, keep_blank_values=True) </s> remove     (scheme, netloc, path, query, fragment) = urlparse.urlsplit(force_str(url))
    query_dict = urlparse.parse_qs(query, keep_blank_values=True)
 </s> add     (scheme, netloc, path, query, fragment) = parse.urlsplit(force_str(url))
    query_dict = parse.parse_qs(query, keep_blank_values=True) </s> remove         super(ManualSchema, self).__init__()
 </s> add         super().__init__()
        urls = super().get_urls()
          """
          Generate the list of URL patterns, including a default root view
          for the API, and appending `.json` style format suffixes.
          """
        urls = super().get_urls()
  
          if self.include_root_view:
              view = self.get_api_root_view(api_urls=urls)
              root_url = url(r'^$', view, name=self.root_view_name)
              urls.append(root_url)
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