mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
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:
parent
c70bdad8b4
commit
413ceb57b2
3 changed files with 9 additions and 9 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue