Mercurial > p > roundup > code
changeset 4649:fc513bd18167
Use "raise E, V, T" instead of "raise E(V).with_traceback(T)" (with_traceback is not available in Python 2).
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Sat, 28 Jul 2012 18:12:00 +0200 |
| parents | e645820e8556 |
| children | 0485b47a39a8 |
| files | CHANGES.txt roundup/cgi/client.py |
| diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Sat Jul 28 17:41:20 2012 +0200 +++ b/CHANGES.txt Sat Jul 28 18:12:00 2012 +0200 @@ -11,6 +11,9 @@ Fixed: +- "BaseException.with_traceback" is not available on Python 2, so use + "raise E, V, T" instead of "raise E(V).with_traceback(T)". This change was + originally introduced in 74476eaac38a. (Ezio Melotti) - issue2550759: Trailing punctuation is no longer included when URLs are converted to links. (Ezio Melotti) - issue2550574: Restore sample detectors removed in roundup 1.4.9
--- a/roundup/cgi/client.py Sat Jul 28 17:41:20 2012 +0200 +++ b/roundup/cgi/client.py Sat Jul 28 18:12:00 2012 +0200 @@ -1114,7 +1114,7 @@ # receive an error message, and the adminstrator will # receive a traceback, albeit with less information # than the one we tried to generate above. - raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) + raise exc_info[0], exc_info[1], exc_info[2] # these are the actions that are available actions = (
