  from django.utils import six
  from django.utils.encoding import smart_text
  from django.utils.xmlutils import SimplerXMLGenerator
  from rest_framework import exceptions, serializers, status, VERSION
  from rest_framework.compat import SHORT_SEPARATORS, LONG_SEPARATORS, yaml
  from rest_framework.exceptions import ParseError
  from rest_framework.settings import api_settings
 
</s> remove from rest_framework.compat import (
    SHORT_SEPARATORS, LONG_SEPARATORS, StringIO, smart_text, yaml
)
 </s> add from rest_framework.compat import SHORT_SEPARATORS, LONG_SEPARATORS, yaml </s> remove from rest_framework.compat import smart_text, HttpResponseBase, View
 </s> add from rest_framework.compat import HttpResponseBase, View </s> remove from rest_framework.compat import etree, yaml, force_text, urlparse
 </s> add from django.utils.encoding import force_text
from rest_framework.compat import etree, yaml, urlparse
from django.utils.six.moves import StringIO
  from django.utils import six
  from django.utils.encoding import smart_text
  from django.utils.xmlutils import SimplerXMLGenerator
from django.utils.six.moves import StringIO
  from rest_framework import exceptions, serializers, status, VERSION
  from rest_framework.compat import SHORT_SEPARATORS, LONG_SEPARATORS, yaml
  from rest_framework.exceptions import ParseError
  from rest_framework.settings import api_settings
keep keep add keep keep keep keep
 Removed custom StringIO, force_text, smart_text compat 
rest_framework/renderers.py