summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 21:50:31 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-15 21:50:31 +0000
commitdb806580484a2267747cc8894ed8aec2955d51f6 (patch)
tree00750c90962b670ccafd883daf23c003f95f1850
parent76f750a01d656501240ba3d00c1db15e60daa463 (diff)
parentfce950fe022421894f63ae7c827c9275edf7d811 (diff)
downloadktlint-aml_tz3_314012010.tar.gz
Change-Id: I9e681c5982201a4fd085ffd9417e718a46ff30a2
-rwxr-xr-xktlint.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ktlint.py b/ktlint.py
index 16bc0f8..72adbab 100755
--- a/ktlint.py
+++ b/ktlint.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python
#
# 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.decode('utf-8'))
+ print(stdout)
print(FORMAT_MESSAGE.format(MAIN_DIRECTORY, ' '.join(kt_files)))
sys.exit(1)
else: