  from rest_framework.compat import StringIO
  from django import forms
  from django.core.files.uploadhandler import MemoryFileUploadHandler
  from django.test import TestCase
  from django.utils import unittest
  from rest_framework.compat import etree
  from rest_framework.parsers import FormParser, FileUploadParser
  from rest_framework.parsers import XMLParser
  import datetime
  
  
 
</s> remove from rest_framework.compat import StringIO
 </s> add  </s> remove from rest_framework.parsers import XMLParser
import datetime
 </s> add  </s> remove from rest_framework.compat import yaml, etree, StringIO, BytesIO
 </s> add from rest_framework.compat import yaml, BytesIO </s> remove     XMLRenderer, JSONPRenderer, BrowsableAPIRenderer
from rest_framework.parsers import YAMLParser, XMLParser
 </s> add     JSONPRenderer, BrowsableAPIRenderer
from rest_framework.parsers import YAMLParser </s> remove from django.utils import six, unittest
 </s> add from django.utils import six
from rest_framework.compat import StringIO
  from rest_framework.compat import StringIO
  from django import forms
  from django.core.files.uploadhandler import MemoryFileUploadHandler
  from django.test import TestCase
from rest_framework.compat import StringIO
from rest_framework.compat import StringIO
  from rest_framework.parsers import FormParser, FileUploadParser
  from rest_framework.parsers import XMLParser
  import datetime
  
  
keep keep keep keep replace replace keep keep keep keep keep
 Remove XML support from core 
tests/test_parsers.py