          See: https://github.com/encode/django-rest-framework/issues/1708
          """
          # use a mock object instead of gettext_lazy to ensure that we can't end
          # up with a test case string in our l10n catalog
          @python_2_unicode_compatible
          class MockLazyStr(object):
              def __init__(self, string):
                  self.s = string
  
              def __str__(self):
                  return self.s
 
</s> remove @python_2_unicode_compatible
class PKOnlyObject(object):
 </s> add class PKOnlyObject: </s> remove def unicode_repr(instance):
    # Get the repr of an instance, but ensure it is a unicode string
    # on both python 3 (already the case) and 2 (not the case).
    if six.PY2:
        return repr(instance).decode('utf-8')
    return repr(instance)


def unicode_to_repr(value):
    # Coerce a unicode string to the correct repr return type, depending on
    # the Python version. We wrap all our `__repr__` implementations with
    # this and then use unicode throughout internally.
    if six.PY2:
        return value.encode('utf-8')
    return value


 </s> add  </s> remove class Hyperlink(six.text_type):
 </s> add class Hyperlink(str): </s> remove             six.text_type(key): key for key in self.choices
 </s> add             str(key): key for key in self.choices </s> remove         return six.text_type(self.obj)
 </s> add         return str(self.obj)
        class MockLazyStr:
          See: https://github.com/encode/django-rest-framework/issues/1708
          """
          # use a mock object instead of gettext_lazy to ensure that we can't end
          # up with a test case string in our l10n catalog
        class MockLazyStr:
        class MockLazyStr:
              def __init__(self, string):
                  self.s = string
  
              def __str__(self):
                  return self.s
keep keep keep keep 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> 
tests/test_description.py