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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4