Remove str.format to support python2.5.

Fixes #2077
Fixes #2108

Thanks to David Keegan for debugging and the patch.
This commit is contained in:
Ryan Dahl 2011-11-14 12:03:23 -08:00
parent 2cd51ef5d4
commit 4b0241d589

View File

@ -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()