Author: collin.winter
Date: Mon Sep 10 02:31:50 2007
New Revision: 58074
Modified:
python/branches/py3k/Doc/tutorial/errors.rst
Log:
Fix more two-arg raise statements.
Modified: python/branches/py3k/Doc/tutorial/errors.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/errors.rst (original)
+++ python/branches/py3k/Doc/tutorial/errors.rst Mon Sep 10 02:31:50 2007
@@ -216,7 +216,7 @@
The :keyword:`raise` statement allows the programmer to force a specified
exception to occur. For example::
- >>> raise NameError, 'HiThere'
+ >>> raise NameError('HiThere')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: HiThere
@@ -231,7 +231,7 @@
re-raise the exception::
>>> try:
- ... raise NameError, 'HiThere'
+ ... raise NameError('HiThere')
... except NameError:
... print('An exception flew by!')
... raise
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins