Skip to content

Commit

Permalink
Fix clang-format output during linting
Browse files Browse the repository at this point in the history
Instead of printing a binary object, treat the output of clang-format
as a utf-8 string.

b/190743862

Change-Id: I596d223792597f8157fdee2d75773131cc858c9a
  • Loading branch information
joeyparrish committed Jun 21, 2021
1 parent c0d6808 commit e32b35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packager/tools/git/check_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
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()
Expand Down

0 comments on commit e32b35f

Please sign in to comment.