diff options
author | R. Tyler Ballance <tyler@monkeypox.org> | 2009-12-26 22:19:51 -0800 |
---|---|---|
committer | R. Tyler Ballance <tyler@monkeypox.org> | 2009-12-27 16:00:42 -0800 |
commit | 26d818d217b97ba053eaef96b9a36836831c6874 (patch) | |
tree | 09f3eb43f53593a0537c8a5366dfc40cd9513d0f | |
parent | 955549314408faa85aee0d6cccb1e6556cef8fdb (diff) | |
download | python-cheetah-26d818d217b97ba053eaef96b9a36836831c6874.tar.gz |
Use 'as' reserved word in except blocks
-rw-r--r-- | cheetah/Tests/Template.py | 4 |
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): |