From 0c6bf530a070022235240a8d7be1ff091710689f Mon Sep 17 00:00:00 2001 From: GreenAddress Date: Sat, 20 Oct 2018 23:04:31 +0200 Subject: [PATCH] lib: use print() for python version detection PR-URL: https://github.com/nodejs/node-gyp/pull/1534 Reviewed-By: Refael Ackermann --- lib/configure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configure.js b/lib/configure.js index 35e6787d1f..a42abe5972 100644 --- a/lib/configure.js +++ b/lib/configure.js @@ -448,7 +448,7 @@ PythonFinder.prototype = { }, checkPythonVersion: function checkPythonVersion () { - var args = ['-c', 'import sys; print "%s.%s.%s" % sys.version_info[:3];'] + var args = ['-c', 'import sys; print("%s.%s.%s" % sys.version_info[:3]);'] var env = extend({}, this.env) env.TERM = 'dumb'