  def zero_as_none(value):
      return None if value == 0 else value
  
  
  class BaseRenderer(object):
      """
      All renderers should extend this class, setting the `media_type`
      and `format` attributes, and override the `.render()` method.
      """
      media_type = None
 
</s> remove class BaseParser(object):
 </s> add class BaseParser: </s> remove     value = unicode_repr(value)
 </s> add     value = repr(value) </s> remove         if value is None or value is '':
 </s> add         if value is None or value == '': </s> remove         value = six.text_type(data)
 </s> add         value = str(data) </s> remove         if style.get('input_type') == 'datetime-local' and isinstance(field.value, six.text_type):
 </s> add         if style.get('input_type') == 'datetime-local' and isinstance(field.value, str):
class BaseRenderer:
  def zero_as_none(value):
      return None if value == 0 else value
  
  
class BaseRenderer:
      """
      All renderers should extend this class, setting the `media_type`
      and `format` attributes, and override the `.render()` method.
      """
      media_type = None
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/renderers.py