Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Remove str.format to support python2.5.
Browse files Browse the repository at this point in the history
Fixes #2077
Fixes #2108

Thanks to David Keegan for debugging and the patch.
  • Loading branch information
ry committed Nov 15, 2011
1 parent 2cd51ef commit 4b0241d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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')
Expand All @@ -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.