  from django.conf import settings
  from django.http import HttpRequest, QueryDict
  from django.http.multipartparser import parse_header
  from django.http.request import RawPostDataException
  from django.utils import six
  from django.utils.datastructures import MultiValueDict
  
  from rest_framework import HTTP_HEADER_ENCODING, exceptions
  from rest_framework.settings import api_settings
  
 
</s> remove from django.utils.six.moves.urllib import parse as urlparse
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove from django.utils import six
 </s> add 
  from django.conf import settings
  from django.http import HttpRequest, QueryDict
  from django.http.multipartparser import parse_header
  from django.http.request import RawPostDataException

  from django.utils.datastructures import MultiValueDict
  
  from rest_framework import HTTP_HEADER_ENCODING, exceptions
  from rest_framework.settings import api_settings
  
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