summaryrefslogtreecommitdiff
path: root/deps/v8/tools/testrunner/local/statusfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/tools/testrunner/local/statusfile.py')
-rw-r--r--deps/v8/tools/testrunner/local/statusfile.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/deps/v8/tools/testrunner/local/statusfile.py b/deps/v8/tools/testrunner/local/statusfile.py
index 5d05e23cc3..e4778326a9 100644
--- a/deps/v8/tools/testrunner/local/statusfile.py
+++ b/deps/v8/tools/testrunner/local/statusfile.py
@@ -25,6 +25,9 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# for py2/py3 compatibility
+from __future__ import print_function
+
import os
import re
@@ -133,7 +136,7 @@ class StatusFile(object):
variant_desc = 'variant independent'
else:
variant_desc = 'variant: %s' % variant
- print 'Unused rule: %s -> %s (%s)' % (rule, value, variant_desc)
+ print('Unused rule: %s -> %s (%s)' % (rule, value, variant_desc))
def _JoinsPassAndFail(outcomes1, outcomes2):
@@ -329,5 +332,5 @@ def PresubmitCheck(path):
"missing file for %s test %s" % (basename, rule))
return status["success"]
except Exception as e:
- print e
+ print(e)
return False