mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix more raise statments in the docs.
This commit is contained in:
parent
c7526f5b3e
commit
58721bca11
2 changed files with 3 additions and 2 deletions
|
@ -262,7 +262,7 @@ directly or indirectly. For example::
|
|||
... print('My exception occurred, value:', e.value)
|
||||
...
|
||||
My exception occurred, value: 4
|
||||
>>> raise MyError, 'oops!'
|
||||
>>> raise MyError('oops!')
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
__main__.MyError: 'oops!'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue