  import json  # noqa
  import uuid
  
  from django.db.models.query import QuerySet
  from django.utils import six, timezone
  from django.utils.encoding import force_text
  from django.utils.functional import Promise
  
  from rest_framework.compat import coreapi
  
 
</s> remove from rest_framework.compat import unicode_repr

 </s> add  </s> remove from django.utils import six, timezone
 </s> add from django.utils import timezone </s> remove from rest_framework.compat import MutableMapping, unicode_to_repr
 </s> add from rest_framework.compat import MutableMapping </s> remove from rest_framework.compat import Mapping, postgres_fields, unicode_to_repr
 </s> add from rest_framework.compat import Mapping, postgres_fields </s> remove from __future__ import absolute_import, unicode_literals

 </s> add 
from django.utils import timezone
  import json  # noqa
  import uuid
  
  from django.db.models.query import QuerySet
from django.utils import timezone
  from django.utils.encoding import force_text
  from django.utils.functional import Promise
  
  from rest_framework.compat import coreapi
  
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/utils/encoders.py