Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
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...
ry committed Nov 14, 2011
1 parent 2cd51ef commit 4b0241d5892f91dfac0438f9051c71e790be95ea
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 @@
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()

0 comments on commit 4b0241d

Please sign in to comment.
You can’t perform that action at this time.