[1.1.X] Python 2.3 doesn't do decorators.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12761 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey 2010-03-11 14:14:07 +00:00
parent 0b78ce8214
commit 705d6cce0f
1 changed files with 2 additions and 3 deletions

View File

@ -1,10 +1,9 @@
from django import template
from regressiontests.views import BrokenException
register = template.Library()
@register.simple_tag
def go_boom(arg):
raise BrokenException(arg)
register.simple_tag(go_boom)