tools: make getnodeversion.py python3-compatible

PR-URL: https://github.com/nodejs/node/pull/21872
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
silverwind 2018-07-18 18:26:21 +02:00 committed by Roman Reiss
parent 2d32a7e90a
commit 287521d298
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443

View File

@ -17,4 +17,4 @@ for line in f:
if re.match('^#define NODE_PATCH_VERSION', line):
patch = line.split()[2]
print '%(major)s.%(minor)s.%(patch)s'% locals()
print('%(major)s.%(minor)s.%(patch)s'% locals())