      return (base_media_type == 'application/x-www-form-urlencoded' or
              base_media_type == 'multipart/form-data')
  
  
  class override_method(object):
      """
      A context manager that temporarily overrides the method on a request,
      additionally setting the `view.request` attribute.
  
      Usage:
 
</s> remove         request = super(ViewSetMixin, self).initialize_request(request, *args, **kwargs)
 </s> add         request = super().initialize_request(request, *args, **kwargs) </s> remove class ErrorDetail(six.text_type):
 </s> add class ErrorDetail(str): </s> remove class Hyperlink(six.text_type):
 </s> add class Hyperlink(str): </s> remove class BaseRenderer(object):
 </s> add class BaseRenderer: </s> remove         if data == '' or (self.trim_whitespace and six.text_type(data).strip() == ''):
 </s> add         if data == '' or (self.trim_whitespace and str(data).strip() == ''):
class override_method:
      return (base_media_type == 'application/x-www-form-urlencoded' or
              base_media_type == 'multipart/form-data')
  
  
class override_method:
      """
      A context manager that temporarily overrides the method on a request,
      additionally setting the `view.request` attribute.
  
      Usage:
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/request.py