[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:
parent
0b78ce8214
commit
705d6cce0f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue