From e32b35f3e155eef4d2af5340f4a48a4ca57f2e88 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Fri, 18 Jun 2021 11:08:36 -0700 Subject: [PATCH] Fix clang-format output during linting Instead of printing a binary object, treat the output of clang-format as a utf-8 string. b/190743862 Change-Id: I596d223792597f8157fdee2d75773131cc858c9a --- packager/tools/git/check_formatting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/tools/git/check_formatting.py b/packager/tools/git/check_formatting.py index 179f4e716a..2cb76dece8 100755 --- a/packager/tools/git/check_formatting.py +++ b/packager/tools/git/check_formatting.py @@ -52,7 +52,7 @@ if __name__ == '__main__': b'no modified files to format\n', b'clang-format did not modify any files\n' ]: - print(output) + print(output.decode('utf-8')) print() print('Code style is not correct. Please run {}.'.format(' '.join(command))) print()