Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove str.format to support python2.5.

Fixes #2077
Fixes #2108

Thanks to David Keegan for debugging and the patch.
  • Loading branch information...
commit 4b0241d5892f91dfac0438f9051c71e790be95ea 1 parent 2cd51ef
@ry ry authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/
4 tools/
@@ -1,4 +1,4 @@
-import os,re;
+import os,re
node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src',
@@ -13,4 +13,4 @@
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()
Please sign in to comment.
Something went wrong with that request. Please try again.