diff options
author | cclauss <cclauss@bluewin.ch> | 2018-11-19 06:09:40 -0500 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2018-11-25 18:58:58 -0500 |
commit | b507783bc116d6703f374d1d096b057df51191be (patch) | |
tree | 3fadf92b7187c5995b1a617162b7b266966644cc /tools/genv8constants.py | |
parent | f2432a47616979780e7ca76a935e5f05c4ee31b5 (diff) | |
download | android-node-v8-b507783bc116d6703f374d1d096b057df51191be.tar.gz android-node-v8-b507783bc116d6703f374d1d096b057df51191be.tar.bz2 android-node-v8-b507783bc116d6703f374d1d096b057df51191be.zip |
tools: use print() function on both Python 2 and 3
PR-URL: https://github.com/nodejs/node/pull/24486
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'tools/genv8constants.py')
-rwxr-xr-x | tools/genv8constants.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/genv8constants.py b/tools/genv8constants.py index 2b6ed84992..0f56857700 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() |