def resolve(self, path):
        match = super(DecoratorMixin, self).resolve(path)
        if not match:
            return match
        try:
            # In Django 1.3 match is an instance of ResolverMatch class
            match.func = self.apply_decorators(match.func)
        except __HOLE__:
            # Before Django 1.3 match was a tuple 
            match = self.apply_decorators(match[0]), match[1], match[2]
        return match
dataset/ETHPy150Open mila/django-urldecorators/urldecorators/urlresolvers.py/DecoratorMixin.resolve