  
  
  class APIClient(APIRequestFactory, DjangoClient):
      def __init__(self, enforce_csrf_checks=False, **defaults):
          super(APIClient, self).__init__(**defaults)
          self.handler = ForceAuthClientHandler(enforce_csrf_checks)
          self._credentials = {}
  
      def credentials(self, **kwargs):
          """
 
</s> remove         return super(ForceAuthClientHandler, self).get_response(request)
 </s> add         return super().get_response(request) </s> remove         super(APIRequestFactory, self).__init__(**defaults)
 </s> add         super().__init__(**defaults) </s> remove class ListModelMixin(object):
 </s> add class ListModelMixin: </s> remove         super(StringRelatedField, self).__init__(**kwargs)
 </s> add         super().__init__(**kwargs) </s> remove             super(APIClient, self).logout()
 </s> add             super().logout()
        super().__init__(**defaults)
  
  
  class APIClient(APIRequestFactory, DjangoClient):
      def __init__(self, enforce_csrf_checks=False, **defaults):
        super().__init__(**defaults)
          self.handler = ForceAuthClientHandler(enforce_csrf_checks)
          self._credentials = {}
  
      def credentials(self, **kwargs):
          """
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