On Fri,  7 Jan 2011 16:45:26 +0100 (CET)
phillip.eby <python-check...@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.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to