[Python-Dev] r87816 - peps/trunk/pep-3333.txt
Antoine Pitrou
solipsis at pitrou.net
Fri Jan 7 17:32:58 CET 2011
On Fri, 7 Jan 2011 16:45:26 +0100 (CET)
phillip.eby <python-checkins at python.org> wrote:
> Author: phillip.eby
> Date: Fri Jan 7 16:45:26 2011
> New Revision: 87816
>
> Log:
> Fix re-raise syntax for Python 3
>
>
> Modified:
> peps/trunk/pep-3333.txt
>
> Modified: peps/trunk/pep-3333.txt
> ==============================================================================
> --- peps/trunk/pep-3333.txt (original)
> +++ peps/trunk/pep-3333.txt Fri Jan 7 16:45:26 2011
> @@ -323,7 +323,7 @@
> try:
> if headers_sent:
> # Re-raise original exception if headers sent
> - raise exc_info[0], exc_info[1], exc_info[2]
> + raise exc_info[1].with_traceback(exc_info[2])
You shouldn't need that. Just "raise exc_info[1]".
Regards
Antoine.
More information about the Python-Dev
mailing list