Revision 445
Added by Aaron Marcuse-Kubitza almost 13 years ago
exc.py | ||
---|---|---|
6 | 6 |
import strings |
7 | 7 |
import util |
8 | 8 |
|
9 |
def raise_(e): raise e |
|
10 |
|
|
9 | 11 |
def add_msg(e, msg): e.args = (strings.ensure_newl(str(e))+msg,) |
10 | 12 |
|
11 | 13 |
def repl_msg(e, **repls): e.args = (str(e) % repls,) |
Also available in: Unified diff
exc.py: Added raise_() wrapper for raise statement