  from django.conf.urls import include, url
  from django.urls import path, register_converter
  
  from rest_framework.compat import (
      URLResolver, get_regex_pattern, is_route_pattern
  )
  from rest_framework.settings import api_settings
  
  
  def _get_format_path_converter(suffix_kwarg, allowed):
      if allowed:
 
</s> remove from django.urls import path, register_converter
 </s> add from django.urls import URLResolver, path, register_converter
from django.urls.resolvers import RoutePattern </s> remove from django.urls import Resolver404, path, re_path
 </s> add from django.urls import Resolver404, URLResolver, path, re_path
from django.urls.resolvers import RegexPattern </s> remove from rest_framework.compat import make_url_resolver
 </s> add  </s> remove from rest_framework.compat import URLPattern, URLResolver, get_original_route
 </s> add  </s> remove from rest_framework.compat import coreapi, coreschema, get_regex_pattern
 </s> add from rest_framework.compat import coreapi, coreschema
  from django.conf.urls import include, url
  from django.urls import path, register_converter
  



  from rest_framework.settings import api_settings
  
  
  def _get_format_path_converter(suffix_kwarg, allowed):
      if allowed:
keep keep keep replace replace replace keep keep keep keep keep
 Drop all compat support to Django < 2 urls (#7337) 
rest_framework/urlpatterns.py