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
This commit is contained in:
Ramiro Morales 2011-03-17 20:49:31 +00:00
parent c70bdad8b4
commit 413ceb57b2
3 changed files with 9 additions and 9 deletions

View file

@ -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):