summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/errors.rst
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-09-10 00:39:52 (GMT)
committerCollin Winter <collinw@gmail.com>2007-09-10 00:39:52 (GMT)
commit58721bca113398b58e774515360b8d04bf67e9ca (patch)
tree0a381d505db5b1df0c53797737f3795a24d05b44 /Doc/tutorial/errors.rst
parentc7526f5b3eaf8e2e4ad81ea479b85418a7f032f4 (diff)
downloadcpython-58721bca113398b58e774515360b8d04bf67e9ca.zip
cpython-58721bca113398b58e774515360b8d04bf67e9ca.tar.gz
cpython-58721bca113398b58e774515360b8d04bf67e9ca.tar.bz2
Fix more raise statments in the docs.
Diffstat (limited to 'Doc/tutorial/errors.rst')
-rw-r--r--Doc/tutorial/errors.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index 706e2c0..162457e 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -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!'