  from django.test import TestCase
  from django.utils import six, unittest
  from django.utils.translation import ugettext_lazy as _
  from rest_framework import status, permissions
  from rest_framework.compat import yaml, etree, StringIO, BytesIO
  from rest_framework.response import Response
  from rest_framework.views import APIView
  from rest_framework.renderers import BaseRenderer, JSONRenderer, YAMLRenderer, \
      XMLRenderer, JSONPRenderer, BrowsableAPIRenderer
  from rest_framework.parsers import YAMLParser, XMLParser
 
</s> remove from rest_framework.compat import StringIO
 </s> add  </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 </s> remove from django.utils.encoding import python_2_unicode_compatible
from rest_framework.compat import apply_markdown, smart_text
 </s> add from django.utils.encoding import python_2_unicode_compatible, smart_text
from rest_framework.compat import apply_markdown
from rest_framework.compat import yaml, etree
  from django.test import TestCase
  from django.utils import six, unittest
  from django.utils.translation import ugettext_lazy as _
  from rest_framework import status, permissions
from rest_framework.compat import yaml, etree
  from rest_framework.response import Response
  from rest_framework.views import APIView
  from rest_framework.renderers import BaseRenderer, JSONRenderer, YAMLRenderer, \
      XMLRenderer, JSONPRenderer, BrowsableAPIRenderer
  from rest_framework.parsers import YAMLParser, XMLParser
keep keep keep keep replace keep keep keep keep keep
 Removed custom StringIO, force_text, smart_text compat 
tests/test_renderers.py