Revision 4491
Added by Aaron Marcuse-Kubitza about 12 years ago
exc.py | ||
---|---|---|
40 | 40 |
return ''.join(get_traceback_str(t) for t in tracebacks) |
41 | 41 |
|
42 | 42 |
def e_msg(e): |
43 |
if len(e.args) == 0: return str(e) |
|
43 |
if len(e.args) == 0: return strings.ustr(e)
|
|
44 | 44 |
assert util.is_str(e.args[0]) |
45 | 45 |
return strings.ustr(e.args[0]).rstrip() |
46 | 46 |
|
Also available in: Unified diff
Replaced str() with strings.ustr() (or equivalent) everywhere needed, to avoid future UnicodeEncodeErrors