From 4c13cccd836f2e2fe75a576bb5eb941bf87e4788 Mon Sep 17 00:00:00 2001 From: "bradnelson@google.com" Date: Thu, 26 Aug 2010 01:41:54 +0000 Subject: [PATCH] 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 --- presubmit_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presubmit_support.py b/presubmit_support.py index 60cd94cea..f0676c65f 100755 --- a/presubmit_support.py +++ b/presubmit_support.py @@ -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,