          return decorator
       
      unittest.skip = skip
  
  # 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)
  
  # xml.etree.parse only throws ParseError for python >= 2.7
  try:
      from xml.etree import ParseError as ETParseError
  except ImportError: # python < 2.7
 
</s> remove except ImportError: # python < 2.7
 </s> add except ImportError:  # python < 2.7 </s> remove except ImportError: # python < 2.7
 </s> add except ImportError:  # python < 2.7 </s> remove from djangorestframework.compat import reverse_lazy as django_reverse_lazy
 </s> add from django.utils.functional import lazy </s> remove     url(r'^(?P<pk>[0-9]+)/$', InstanceModelView.as_view(resource=MyModelResource)),
 </s> add     url(r'^(?P<id>[0-9]+)/$', InstanceModelView.as_view(resource=MyModelResource), name='model-resource-instance'), </s> remove def reverse_lazy(viewname, request, *args, **kwargs):
    """
    Do the same as `django.core.urlresolvers.reverse_lazy` but using
    *request* to build a fully qualified URL.
    """
    url = django_reverse_lazy(viewname, *args, **kwargs)
    return request.build_absolute_uri(url)
 </s> add reverse_lazy = lazy(reverse, str)
          return decorator
       
      unittest.skip = skip
  







  
  # xml.etree.parse only throws ParseError for python >= 2.7
  try:
      from xml.etree import ParseError as ETParseError
  except ImportError: # python < 2.7
keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
 reverse takes request as a kwarg for compatibility with django's reverse 
djangorestframework/compat.py