diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-11-14 12:03:23 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-11-14 17:09:44 -0800 |
commit | 4b0241d5892f91dfac0438f9051c71e790be95ea (patch) | |
tree | 470e474e617b2c5e6378c39c80578a222532c349 /tools/getnodeversion.py | |
parent | 2cd51ef5d4e2cb51b708f2f4839acdb6e21f090a (diff) | |
download | node-new-4b0241d5892f91dfac0438f9051c71e790be95ea.tar.gz |
Remove str.format to support python2.5.
Fixes #2077
Fixes #2108
Thanks to David Keegan for debugging and the patch.
Diffstat (limited to 'tools/getnodeversion.py')
-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 ddcecec46f..766e4f60dc 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() |