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
This commit is contained in:
Joey Parrish 2021-06-18 11:08:36 -07:00
parent c0d68083ac
commit e32b35f3e1
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ if __name__ == '__main__':
b'no modified files to format\n', b'no modified files to format\n',
b'clang-format did not modify any files\n' b'clang-format did not modify any files\n'
]: ]:
print(output) print(output.decode('utf-8'))
print() print()
print('Code style is not correct. Please run {}.'.format(' '.join(command))) print('Code style is not correct. Please run {}.'.format(' '.join(command)))
print() print()