diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2011-03-17 20:49:31 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2011-03-17 20:49:31 +0000 |
| commit | 413ceb57b268b94f9138faa17690bea927814b9a (patch) | |
| tree | 4deae34aed492e9eea03b457a8e02024209167b4 /docs/ref/templates | |
| parent | c70bdad8b476b457e217c3c444579a8b4b853cc8 (diff) | |
Changed 'raise' statements to new style syntax in documentation. Thanks DaNmarner. Refs #15635.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15874 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/templates')
| -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): |
