Revision 2883
Added by Aaron Marcuse-Kubitza over 12 years ago
exc.py | ||
---|---|---|
78 | 78 |
if emph: |
79 | 79 |
first_line, nl, rest = msg.partition('\n') |
80 | 80 |
msg = term.error(first_line)+nl+rest |
81 |
sys.stderr.write(msg)
|
|
81 |
sys.stderr.write(strings.to_raw_str(msg))
|
|
82 | 82 |
|
83 | 83 |
class ExTracker: |
84 | 84 |
def __init__(self): |
Also available in: Unified diff
Wrap sys.stderr.write() calls in strings.to_raw_str() to avoid UnicodeEncodeErrors when stderr is to a file and the default encoding is ASCII