summaryrefslogtreecommitdiff
path: root/cheetah/Tests/Template.py
diff options
context:
space:
mode:
Diffstat (limited to 'cheetah/Tests/Template.py')
-rw-r--r--cheetah/Tests/Template.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cheetah/Tests/Template.py b/cheetah/Tests/Template.py
index 89c84ed..fd79eca 100644
--- a/cheetah/Tests/Template.py
+++ b/cheetah/Tests/Template.py
@@ -305,7 +305,7 @@ class ClassMethodSupport(TemplateTest):
try:
rc = template.myClassMethod(foo='bar')
assert rc == '$foo = bar', (rc, 'Template class method didn\'t return what I expected')
- except AttributeError, ex:
+ except AttributeError as ex:
self.fail(ex)
class StaticMethodSupport(TemplateTest):
@@ -323,7 +323,7 @@ class StaticMethodSupport(TemplateTest):
try:
rc = template.myStaticMethod(foo='bar')
assert rc == '$foo = bar', (rc, 'Template class method didn\'t return what I expected')
- except AttributeError, ex:
+ except AttributeError as ex:
self.fail(ex)
class Useless(object):