  # flake8: noqa
  import django
  
  # cStringIO only if it's available, otherwise StringIO
  try:
      import cStringIO as StringIO
  except ImportError:
      import StringIO
 
</s> remove import unittest
try:
    import unittest.skip
except ImportError:  # python < 2.7
    from unittest import TestCase
    import functools

    def skip(reason):
        # Pasted from py27/lib/unittest/case.py
        """
        Unconditionally skip a test.
        """
        def decorator(test_item):
            if not (isinstance(test_item, type) and issubclass(test_item, TestCase)):
                @functools.wraps(test_item)
                def skip_wrapper(*args, **kwargs):
                    pass
                test_item = skip_wrapper

            test_item.__unittest_skip__ = True
            test_item.__unittest_skip_why__ = reason
            return test_item
        return decorator

    unittest.skip = skip


 </s> add  </s> remove from django.http import QueryDict
 </s> add  </s> remove import django_filters
 </s> add 
# django-filter is optional
try:
    import django_filters
except:
    django_filters = None


  # flake8: noqa
  import django
  
# django-filter is optional
try:
    import django_filters
except:
    django_filters = None


  # cStringIO only if it's available, otherwise StringIO
  try:
      import cStringIO as StringIO
  except ImportError:
      import StringIO
keep keep add keep keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/compat.py