diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-02-15 03:23:33 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-02-15 03:23:33 +0000 |
commit | fd156fe1ce1322f48079a540b140188ee8ded1e6 (patch) | |
tree | 73274ed6d0aab4c9e945d9edb771bf98febbed26 | |
parent | 3b8d4bd627d5503df912222d2fc1708bbafc756d (diff) | |
parent | b2b4c468ad93319a1997474fb1bb88938d04009d (diff) | |
download | checkcolor-android11-d1-s7-release.tar.gz |
Snap for 6210127 from b2b4c468ad93319a1997474fb1bb88938d04009d to rvc-d1-releaseandroid-11.0.0_r9android-11.0.0_r8android-11.0.0_r7android-11.0.0_r15android-11.0.0_r14android-11.0.0_r13android-11.0.0_r12android-11.0.0_r11android-11.0.0_r10android11-d1-s7-releaseandroid11-d1-s6-releaseandroid11-d1-s5-releaseandroid11-d1-s1-releaseandroid11-d1-release
Change-Id: I82389fe142e45f6751abebfc8a194e43a03c9b1b
-rwxr-xr-x | checkcolor.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/checkcolor.py b/checkcolor.py index 204c7e5..c64495e 100755 --- a/checkcolor.py +++ b/checkcolor.py @@ -18,6 +18,8 @@ """Script used by developers to run hardcoded color check.""" +from __future__ import print_function + import argparse import errno import os @@ -71,10 +73,10 @@ def RunCheckOnProject(root): exitcode = check.returncode except OSError as e: if e.errno == errno.ENOENT: - print 'Error in color lint check' + print('Error in color lint check') if not os.environ.get('ANDROID_BUILD_TOP'): - print 'Try setting up your environment first:' - print ' source build/envsetup.sh && lunch <target>' + print('Try setting up your environment first:') + print(' source build/envsetup.sh && lunch <target>') sys.exit(1) return (exitcode, stdout) @@ -91,10 +93,10 @@ def main(): code, message = RunCheckOnProject(rootdir) if code != 0: exitcode = 1 - print message + print(message) if exitcode == 1: - print 'Please check link for more info:', COLOR_CHECK_README_PATH + print('Please check link for more info:', COLOR_CHECK_README_PATH) sys.exit(exitcode) |