From 965a05bedfefbb5eecfdb33e1b9a4dc1acc96bbf Mon Sep 17 00:00:00 2001 From: kyle Ju Date: Tue, 29 Jun 2021 22:56:18 +0000 Subject: [PATCH] Fix py3 presubmit error. Use unicode strings explicitly. Bug:1225052 Change-Id: I7c536819133c75130baca2f8d295360d7d1ca69c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2995072 Reviewed-by: Edward Lesmes Commit-Queue: Kyle Ju --- presubmit_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presubmit_support.py b/presubmit_support.py index 297f97f5f0..04e6af1fe1 100755 --- a/presubmit_support.py +++ b/presubmit_support.py @@ -331,7 +331,7 @@ class _PresubmitResult(object): if self._long_text: sys.stdout.write('\n***************\n') # Write separately in case it's unicode. - sys.stdout.write(self._long_text) + sys.stdout.write(str(self._long_text)) sys.stdout.write('\n***************\n') def json_format(self):