Commit 4c13cccd authored by bradnelson@google.com's avatar bradnelson@google.com

Handle the case when there is unicode in the tree status more gracefully.

BUG=None
TEST=None

Review URL: http://codereview.chromium.org/3184024

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@57447 0039d316-1c4b-4281-b951-d872f2087c98
parent c0b332a8
......@@ -115,7 +115,7 @@ class OutputApi(object):
output_stream.write(' ' + ' \\\n '.join(map(str, self._items)) + '\n')
if self._long_text:
output_stream.write('\n***************\n%s\n***************\n' %
self._long_text)
self._long_text.encode('ascii', 'replace'))
if self.ShouldPrompt() and may_prompt:
if not PromptYesNo(input_stream, output_stream,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment