      except (TypeError, ValueError, DataError):
          return queryset.none()
  
  
  class UniqueValidator(object):
      """
      Validator that corresponds to `unique=True` on a model field.
  
      Should be applied to an individual field on the serializer.
      """
 
</s> remove class UniqueTogetherValidator(object):
 </s> add class UniqueTogetherValidator: </s> remove         ))
 </s> add         ) </s> remove         self.assertEqual(unicode_repr(NullableBooleanSerializer()), expected)
 </s> add         self.assertEqual(repr(NullableBooleanSerializer()), expected) </s> remove         return unicode_to_repr(representation.field_repr(self))
 </s> add         return representation.field_repr(self) </s> remove class ViewSetMixin(object):
 </s> add class ViewSetMixin:
class UniqueValidator:
      except (TypeError, ValueError, DataError):
          return queryset.none()
  
  
class UniqueValidator:
      """
      Validator that corresponds to `unique=True` on a model field.
  
      Should be applied to an individual field on the serializer.
      """
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/validators.py