summaryrefslogtreecommitdiffstats
path: root/tools/checker.py
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2015-01-20 09:28:38 +0000
committerDavid Brazdil <dbrazdil@google.com>2015-01-20 09:35:18 +0000
commit123c5e983d26b6fb57d2ebe817e5c20fb6046803 (patch)
treea3d971762ee1cf1de81111f874ae58c5cfe38603 /tools/checker.py
parenta943a75a890f43ff9517e13bb6c16de8bfa35d90 (diff)
downloadandroid_art-123c5e983d26b6fb57d2ebe817e5c20fb6046803.tar.gz
android_art-123c5e983d26b6fb57d2ebe817e5c20fb6046803.tar.bz2
android_art-123c5e983d26b6fb57d2ebe817e5c20fb6046803.zip
ART: Run Checker with Python >2.6
Chromium buildbots don't have Python 3. This patch fixes the uses of print() and ASCII vs. Unicode strings to make Checker compatible with Python 2.6 and above. Change-Id: Ic065d990f668b8cf95a337aae037699e8474fcee
Diffstat (limited to 'tools/checker.py')
-rwxr-xr-xtools/checker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/checker.py b/tools/checker.py
index b71eac6e2f..55f015e68a 100755
--- a/tools/checker.py
+++ b/tools/checker.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python2
#
# Copyright (C) 2014 The Android Open Source Project
#
@@ -71,6 +71,7 @@
# constant folding returns an integer constant with value either 11 or 22.
#
+from __future__ import print_function
import argparse
import os
import re