  
      def __init__(self, *args, **kwargs):
          self._force_user = None
          self._force_token = None
          super(ForceAuthClientHandler, self).__init__(*args, **kwargs)
  
      def get_response(self, request):
          # This is the simplest place we can hook into to patch the
          # request object.
          force_authenticate(request, self._force_user, self._force_token)
 
</s> remove         return super(ForceAuthClientHandler, self).get_response(request)
 </s> add         return super().get_response(request) </s> remove         request = super(ViewSetMixin, self).initialize_request(request, *args, **kwargs)
 </s> add         request = super().initialize_request(request, *args, **kwargs) </s> remove         super(SchemaView, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         super(_UnvalidatedField, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         class AuthRaisesAttributeError(object):
 </s> add         class AuthRaisesAttributeError:
        super().__init__(*args, **kwargs)
  
      def __init__(self, *args, **kwargs):
          self._force_user = None
          self._force_token = None
        super().__init__(*args, **kwargs)
  
      def get_response(self, request):
          # This is the simplest place we can hook into to patch the
          # request object.
          force_authenticate(request, self._force_user, self._force_token)
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/test.py