  from __future__ import unicode_literals
  
  from django.conf.urls import include, url
  
  from rest_framework.compat import (
      URLResolver, get_regex_pattern, is_route_pattern, path, register_converter
  )
 
</s> remove from __future__ import unicode_literals

 </s> add  </s> remove from __future__ import unicode_literals

 </s> add  </s> remove from __future__ import unicode_literals

 </s> add  </s> remove # coding: utf-8

from __future__ import unicode_literals

 </s> add  </s> remove from django.utils import six
 </s> add 


  from django.conf.urls import include, url
  
  from rest_framework.compat import (
      URLResolver, get_regex_pattern, is_route_pattern, path, register_converter
  )
replace 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/urlpatterns.py