Project

General

Profile

« Previous | Next » 

Revision 445

exc.py: Added raise_() wrapper for raise statement

View differences:

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