From bfc4cbe9593d1fcae7b225b947637c9c019091a2 Mon Sep 17 00:00:00 2001 From: Dave Mankoff Date: Wed, 23 Mar 2022 12:09:40 -0400 Subject: Fix ktlint formatting. Decode it as utf-8 to fix the output. Fixes: 226370498 Test: manual Change-Id: Ia4317fe445c6705dbf24bdc57a7f4a88f7ebc0f5 --- ktlint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ktlint.py b/ktlint.py index 008721d..16bc0f8 100755 --- a/ktlint.py +++ b/ktlint.py @@ -60,7 +60,7 @@ def main(args=None): stdout, _ = check.communicate() if stdout: print('prebuilts/ktlint found errors in files you changed:') - print(stdout) + print(stdout.decode('utf-8')) print(FORMAT_MESSAGE.format(MAIN_DIRECTORY, ' '.join(kt_files))) sys.exit(1) else: -- cgit v1.2.3