Skip to content

Commit

Permalink
tools: make getnodeversion.py python3-compatible
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
(cherry picked from commit 287521d)
  • Loading branch information
silverwind authored and BaochengSu committed Sep 28, 2020
1 parent 8423f97 commit aeee583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/getnodeversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
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())

0 comments on commit aeee583

Please sign in to comment.