Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-11-15 00:03:23 +0400
committerRyan Dahl <ry@tinyclouds.org>2011-11-15 05:09:44 +0400
commit4b0241d5892f91dfac0438f9051c71e790be95ea (patch)
tree470e474e617b2c5e6378c39c80578a222532c349 /tools
parent2cd51ef5d4e2cb51b708f2f4839acdb6e21f090a (diff)
Remove str.format to support python2.5.
Fixes #2077 Fixes #2108 Thanks to David Keegan for debugging and the patch.
Diffstat (limited to 'tools')
-rw-r--r--tools/getnodeversion.py4
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()