summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-17 07:37:12 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-17 07:37:12 +0000
commit76f750a01d656501240ba3d00c1db15e60daa463 (patch)
treed844377f99b8e3c8817771c76ee809811acd60e1
parentfce950fe022421894f63ae7c827c9275edf7d811 (diff)
parenta407992cf4906d2228f8fbd4beb5605f6bdab0a8 (diff)
downloadktlint-76f750a01d656501240ba3d00c1db15e60daa463.tar.gz
Snap for 8603585 from a407992cf4906d2228f8fbd4beb5605f6bdab0a8 to mainline-tzdata3-release
Change-Id: Ie2e06f7f1bbb79cb4a696c6bc214b47ce5bda34d
-rwxr-xr-xktlint.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ktlint.py b/ktlint.py
index 72adbab..16bc0f8 100755
--- a/ktlint.py
+++ b/ktlint.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
#
# Copyright 2017, The Android Open Source Project
@@ -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: