  import sys
  from collections import OrderedDict
  
  from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist
  from django.db.models import Manager
  from django.db.models.query import QuerySet
 
</s> remove # coding: utf-8
from __future__ import unicode_literals

 </s> add  </s> remove from django.utils import six
from django.utils.encoding import (
    python_2_unicode_compatible, smart_text, uri_to_iri
)
from django.utils.six.moves.urllib import parse as urlparse
 </s> add from django.utils.encoding import smart_text, uri_to_iri </s> remove from django.utils import six, timezone
 </s> add from django.utils import timezone </s> remove from __future__ import unicode_literals

 </s> add  </s> remove from __future__ import unicode_literals

 </s> add 
from urllib import parse
  import sys
  from collections import OrderedDict
from urllib import parse
  
  from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist
  from django.db.models import Manager
  from django.db.models.query import QuerySet
keep add 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/relations.py