diff options
Diffstat (limited to 'docs/ref/templates/api.txt')
| -rw-r--r-- | docs/ref/templates/api.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index ba78f15e81..4cfa4da2ac 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -170,7 +170,7 @@ straight lookups. Here are some things to keep in mind: >>> t = Template("My name is {{ person.first_name }}.") >>> class PersonClass3: ... def first_name(self): - ... raise AssertionError, "foo" + ... raise AssertionError("foo") >>> p = PersonClass3() >>> t.render(Context({"person": p})) Traceback (most recent call last): |
