diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/getnodeversion.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/getnodeversion.py b/tools/getnodeversion.py index ddcecec46fc..766e4f60dc0 100644 --- a/tools/getnodeversion.py +++ b/tools/getnodeversion.py @@ -1,4 +1,4 @@ -import os,re; +import os,re node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src', 'node_version.h') @@ -13,4 +13,4 @@ for line in f: if re.match('#define NODE_PATCH_VERSION', line): patch = line.split()[2] -print '{0:s}.{1:s}.{2:s}'.format(major, minor, patch) +print '%(major)s.%(minor)s.%(patch)s'% locals() |