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:
parent
2cd51ef5d4
commit
4b0241d589
@ -1,4 +1,4 @@
|
|||||||
import os,re;
|
import os,re
|
||||||
|
|
||||||
node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src',
|
node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src',
|
||||||
'node_version.h')
|
'node_version.h')
|
||||||
@ -13,4 +13,4 @@ for line in f:
|
|||||||
if re.match('#define NODE_PATCH_VERSION', line):
|
if re.match('#define NODE_PATCH_VERSION', line):
|
||||||
patch = line.split()[2]
|
patch = line.split()[2]
|
||||||
|
|
||||||
print '{0:s}.{1:s}.{2:s}'.format(major, minor, patch)
|
print '%(major)s.%(minor)s.%(patch)s'% locals()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user