summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2012-04-11 11:16:11 -0700
committerNathan Rajlich <nathan@tootallnate.net>2012-04-11 11:16:11 -0700
commitfdeeabba784f5581d630589fb9667bdab237b5fb (patch)
treee0d1bd6f0ee4ed60c4e80caa63f414042be411bd /configure
parente0660740d9e3cc7487aab46866b7a87f35128b73 (diff)
downloadnodejs-fdeeabba784f5581d630589fb9667bdab237b5fb.tar.gz
nodejs-fdeeabba784f5581d630589fb9667bdab237b5fb.tar.bz2
nodejs-fdeeabba784f5581d630589fb9667bdab237b5fb.zip
configure: don't use "with" for Python 2.5 and older
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 1a942517b..ef34cf810 100755
--- a/configure
+++ b/configure
@@ -342,8 +342,8 @@ pprint.pprint(output, indent=2)
def write(filename, data):
filename = os.path.join(root_dir, filename)
print "creating ", filename
- with open(filename, 'w+') as f:
- f.write(data)
+ f = open(filename, 'w+')
+ f.write(data)
write('config.gypi', "# Do not edit. Generated by the configure script.\n" +
pprint.pformat(output, indent=2))