  
      if isinstance(value, Promise) and value._delegate_text:
          value = force_text(value)
  
      value = unicode_repr(value)
  
      # Representations like u'help text'
      # should simply be presented as 'help text'
      if value.startswith("u'") and value.endswith("'"):
          return value[1:]
 
</s> remove         value = six.text_type(data)
 </s> add         value = str(data) </s> remove             if isinstance(value, six.text_type):
 </s> add             if isinstance(value, str): </s> remove         if isinstance(data, bool) or not isinstance(data, six.string_types + six.integer_types + (float,)):
 </s> add         if isinstance(data, bool) or not isinstance(data, (str, int, float,)): </s> remove         if output_format is None or isinstance(value, six.string_types):
 </s> add         if output_format is None or isinstance(value, str): </s> remove class BaseRenderer(object):
 </s> add class BaseRenderer:
    value = repr(value)
  
      if isinstance(value, Promise) and value._delegate_text:
          value = force_text(value)
  
    value = repr(value)
  
      # Representations like u'help text'
      # should simply be presented as 'help text'
      if value.startswith("u'") and value.endswith("'"):
          return value[1:]
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/utils/representation.py