  
          return not bool(self._errors)
  
      def __repr__(self):
          return unicode_to_repr(representation.list_repr(self, indent=1))
  
      # Include a backlink to the serializer class on return objects.
      # Allows renderers such as HTMLFormRenderer to get the full field info.
  
      @property
 
</s> remove         ret = super(ListSerializer, self).data
 </s> add         ret = super().data </s> remove         ret = super(Serializer, self).data
 </s> add         ret = super().data </s> remove         return unicode_to_repr(representation.serializer_repr(self, indent=1))
 </s> add         return representation.serializer_repr(self, indent=1) </s> remove class UniqueValidator(object):
 </s> add class UniqueValidator: </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 
        return representation.list_repr(self, indent=1)
  
          return not bool(self._errors)
  
      def __repr__(self):
        return representation.list_repr(self, indent=1)
  
      # Include a backlink to the serializer class on return objects.
      # Allows renderers such as HTMLFormRenderer to get the full field info.
  
      @property
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/serializers.py