def _get_resolver_match(request):
    try:
        return request.resolver_match
    except __HOLE__:
        # Django < 1.5
        from django.core.urlresolvers import resolve
        return resolve(request.path_info)
dataset/ETHPy150Open edoburu/django-parler/parler/templatetags/parler_tags.py/_get_resolver_match