          except (TypeError, KeyError):
              return {}
  
  
  class ListModelMixin(object):
      """
      List a queryset.
      """
      def list(self, request, *args, **kwargs):
          queryset = self.filter_queryset(self.get_queryset())
 
</s> remove class UniqueValidator(object):
 </s> add class UniqueValidator: </s> remove         return super(NonAtomicAPIExceptionView, self).dispatch(*args, **kwargs)
 </s> add         return super().dispatch(*args, **kwargs) </s> remove class BaseVersioning(object):
 </s> add class BaseVersioning: </s> remove         super(APIClient, self).__init__(**defaults)
 </s> add         super().__init__(**defaults) </s> remove         request = super(ViewSetMixin, self).initialize_request(request, *args, **kwargs)
 </s> add         request = super().initialize_request(request, *args, **kwargs)
class ListModelMixin:
          except (TypeError, KeyError):
              return {}
  
  
class ListModelMixin:
      """
      List a queryset.
      """
      def list(self, request, *args, **kwargs):
          queryset = self.filter_queryset(self.get_queryset())
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/mixins.py