From b507783bc116d6703f374d1d096b057df51191be Mon Sep 17 00:00:00 2001 From: cclauss Date: Mon, 19 Nov 2018 06:09:40 -0500 Subject: tools: use print() function on both Python 2 and 3 PR-URL: https://github.com/nodejs/node/pull/24486 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Refael Ackermann Reviewed-By: Sakthipriyan Vairamani --- tools/genv8constants.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tools/genv8constants.py') diff --git a/tools/genv8constants.py b/tools/genv8constants.py index 2b6ed849925..0f56857700c 100755 --- a/tools/genv8constants.py +++ b/tools/genv8constants.py @@ -7,13 +7,14 @@ # ustack helper. # +from __future__ import print_function import re import subprocess import sys import errno if len(sys.argv) != 3: - print "usage: objsym.py outfile libv8_base.a" + print("usage: objsym.py outfile libv8_base.a") sys.exit(2); outfile = file(sys.argv[1], 'w'); @@ -22,13 +23,13 @@ try: bufsize=-1, stdout=subprocess.PIPE).stdout; except OSError, e: if e.errno == errno.ENOENT: - print ''' + print(''' Node.js compile error: could not find objdump Check that GNU binutils are installed and included in PATH - ''' + ''') else: - print 'problem running objdump: ', e.strerror + print('problem running objdump: ', e.strerror) sys.exit() -- cgit v1.2.3