  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
  
  
  class Form(forms.Form):
      field1 = forms.CharField(max_length=3)
      field2 = forms.CharField()
 
</s> remove from django.utils import unittest
from rest_framework.compat import etree
 </s> add from rest_framework.compat import StringIO </s> remove from rest_framework.compat import yaml, etree, StringIO, BytesIO
 </s> add from rest_framework.compat import yaml, BytesIO </s> remove from rest_framework.compat import StringIO
 </s> add  </s> remove     XMLRenderer, JSONPRenderer, BrowsableAPIRenderer
from rest_framework.parsers import YAMLParser, XMLParser
 </s> add     JSONPRenderer, BrowsableAPIRenderer
from rest_framework.parsers import YAMLParser </s> remove import datetime
 </s> add 
  from django.test import TestCase
  from django.utils import unittest
  from rest_framework.compat import etree
  from rest_framework.parsers import FormParser, FileUploadParser


  
  
  class Form(forms.Form):
      field1 = forms.CharField(max_length=3)
      field2 = forms.CharField()
keep keep keep keep replace replace keep keep keep keep keep
 Remove XML support from core 
tests/test_parsers.py