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:
parent
2d32a7e90a
commit
287521d298
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user