diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2020-03-04 01:04:11 +0000 |
---|---|---|
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | 2020-03-04 01:04:11 +0000 |
commit | 5e677d8ceb6d2656e00f03488a06544db42f0688 (patch) | |
tree | 73274ed6d0aab4c9e945d9edb771bf98febbed26 | |
parent | 1bf0b4a993445445eb7aff1735c13c8b53d7ff3a (diff) | |
parent | dc6654af6117d7fef4309b9cf6fb4e66486bc1a7 (diff) | |
download | checkcolor-5e677d8ceb6d2656e00f03488a06544db42f0688.tar.gz |
Snap for 6259218 from dc6654af6117d7fef4309b9cf6fb4e66486bc1a7 to sdk-release
Change-Id: I17736e877e4e9faff5c810e6a337b5999bedf214
-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) |