      url(r'^post$', PostView.as_view()),
  ]
  
  
  class RequestUserMiddleware(object):
      def __init__(self, get_response):
          self.get_response = get_response
  
      def __call__(self, request):
          response = self.get_response(request)
 
</s> remove class RequestPOSTMiddleware(object):
 </s> add class RequestPOSTMiddleware: </s> remove class MockVersioningScheme(object):
 </s> add class MockVersioningScheme: </s> remove         super(SchemaView, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         response = super(APIClient, self).post(
 </s> add         response = super().post( </s> remove         response = super(APIClient, self).patch(
 </s> add         response = super().patch(
class RequestUserMiddleware:
      url(r'^post$', PostView.as_view()),
  ]
  
  
class RequestUserMiddleware:
      def __init__(self, get_response):
          self.get_response = get_response
  
      def __call__(self, request):
          response = self.get_response(request)
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> 
tests/test_middleware.py