Skip to content

Commit 4b0241d

Browse files
committed
Remove str.format to support python2.5.
Fixes #2077 Fixes #2108 Thanks to David Keegan for debugging and the patch.
1 parent 2cd51ef commit 4b0241d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/getnodeversion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import os,re;
1+
import os,re
22

33
node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src',
44
'node_version.h')
@@ -13,4 +13,4 @@
1313
if re.match('#define NODE_PATCH_VERSION', line):
1414
patch = line.split()[2]
1515

16-
print '{0:s}.{1:s}.{2:s}'.format(major, minor, patch)
16+
print '%(major)s.%(minor)s.%(patch)s'% locals()

0 commit comments

Comments
 (0)