Permalink
Browse files

[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
  • Loading branch information...
1 parent 0b78ce8 commit 705d6cce0f31140944f8c0b0d42a29a9f69cbf24 @kmtracey kmtracey committed Mar 11, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/regressiontests/views/templatetags/debugtags.py
@@ -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)

0 comments on commit 705d6cc

Please sign in to comment.