  
  # xml.etree.parse only throws ParseError for python >= 2.7
  try:
      from xml.etree import ParseError as ETParseError
  except ImportError: # python < 2.7
      ETParseError = None
 
</s> remove # reverse_lazy (Django 1.4 onwards)
try:
    from django.core.urlresolvers import reverse_lazy
except:
    from django.core.urlresolvers import reverse
    from django.utils.functional import lazy
    reverse_lazy = lazy(reverse, str)
 </s> add  </s> remove except ImportError: # python < 2.7
 </s> add except ImportError:  # python < 2.7 </s> remove     Objects that a resource can act on include plain Python object instances, Django Models, and Django QuerySets.
 </s> add     Objects that a resource can act on include plain Python object instances,
    Django Models, and Django QuerySets. </s> remove from djangorestframework.compat import reverse_lazy as django_reverse_lazy
 </s> add from django.utils.functional import lazy </s> remove     Base class for all Resource classes, which simply defines the interface they provide.
 </s> add     Base class for all Resource classes, which simply defines the interface
    they provide.
except ImportError:  # python < 2.7
  
  # xml.etree.parse only throws ParseError for python >= 2.7
  try:
      from xml.etree import ParseError as ETParseError
except ImportError:  # python < 2.7
      ETParseError = None
keep keep keep keep replace keep
 reverse takes request as a kwarg for compatibility with django's reverse 
djangorestframework/compat.py