From 58721bca113398b58e774515360b8d04bf67e9ca Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Mon, 10 Sep 2007 00:39:52 +0000 Subject: Fix more raise statments in the docs. --- Doc/tutorial/errors.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Doc/tutorial/errors.rst') diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 706e2c0ddf..162457edec 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 "", line 1, in ? __main__.MyError: 'oops!' -- cgit v1.2.1