      from django.core.validators import ProhibitNullCharactersValidator  # noqa
  except ImportError:
      ProhibitNullCharactersValidator = None
  
  try:
      from unittest import mock
  except ImportError:
      mock = None
  
  
  def get_original_route(urlpattern):
      """
      Get the original route/regex that was typed in by the user into the path(), re_path() or url() directive. This
      is in contrast with get_regex_pattern below, which for RoutePattern returns the raw regex generated from the path().
 
</s> remove try:
    from collections import ChainMap
except ImportError:
    ChainMap = False

 </s> add  </s> remove @python_2_unicode_compatible
class PKOnlyObject(object):
 </s> add class PKOnlyObject: </s> remove         super(ForceAuthClientHandler, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove # -- coding: utf-8 --

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

 </s> add 
      from django.core.validators import ProhibitNullCharactersValidator  # noqa
  except ImportError:
      ProhibitNullCharactersValidator = None
  





  
  def get_original_route(urlpattern):
      """
      Get the original route/regex that was typed in by the user into the path(), re_path() or url() directive. This
      is in contrast with get_regex_pattern below, which for RoutePattern returns the raw regex generated from the path().
keep keep keep keep replace replace replace 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/compat.py