~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

Don't encode unicode messages to UTF-8 in mutter() (the stream writer does it).

Use a codec wrapped log file in tests to match the real environment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
    else:
94
94
        out = fmt
95
95
    out += '\n'
96
 
    if isinstance(out, unicode):
97
 
        out = out.encode('utf-8')
98
96
    _trace_file.write(out)
99
97
debug = mutter
100
98