Revision 3603
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/exc.py | ||
---|---|---|
36 | 36 |
except AttributeError: return '' |
37 | 37 |
return ''.join(get_traceback_str(t) for t in tracebacks) |
38 | 38 |
|
39 |
def e_msg(e): return e.args[0].rstrip()
|
|
39 |
def e_msg(e): return strings.ustr(e.args[0]).rstrip()
|
|
40 | 40 |
|
41 | 41 |
def e_str(e): return e.__class__.__name__+': '+e_msg(e) |
42 | 42 |
|
Also available in: Unified diff
exc.py: e_msg(): Run strings.ustr() on the returned string so it will be appendable to other Unicode strings