  from django.conf import settings
  from django.contrib.admindocs.views import simplify_regex
  from django.core.exceptions import PermissionDenied
  from django.http import Http404
  from django.utils import six
  
  from rest_framework import exceptions
  from rest_framework.compat import (
      URLPattern, URLResolver, coreapi, coreschema, get_original_route
  )
 
</s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils.six.moves.urllib import parse as urlparse
 </s> add  </s> remove from __future__ import unicode_literals

 </s> add 
  from django.conf import settings
  from django.contrib.admindocs.views import simplify_regex
  from django.core.exceptions import PermissionDenied
  from django.http import Http404

  
  from rest_framework import exceptions
  from rest_framework.compat import (
      URLPattern, URLResolver, coreapi, coreschema, get_original_route
  )
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/schemas/generators.py