Project

General

Profile

« Previous | Next » 

Revision 4491

Replaced str() with strings.ustr() (or equivalent) everywhere needed, to avoid future UnicodeEncodeErrors

View differences:

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