diff Doc/tutorial/errors.rst @ 43309:09287f2055ab

Fix more raise statments in the docs.
author Collin Winter <collinw@gmail.com>
date Mon, 10 Sep 2007 00:39:52 +0000
parents b27d349162bd
children 0ff46ef946b1
line wrap: on
line diff
--- a/Doc/tutorial/errors.rst	Mon Sep 10 00:36:57 2007 +0000
+++ b/Doc/tutorial/errors.rst	Mon Sep 10 00:39:52 2007 +0000
@@ -262,7 +262,7 @@
    ...     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!'