diff options
author | Nathan Rajlich <nathan@tootallnate.net> | 2012-04-11 11:16:11 -0700 |
---|---|---|
committer | Nathan Rajlich <nathan@tootallnate.net> | 2012-04-11 11:16:11 -0700 |
commit | fdeeabba784f5581d630589fb9667bdab237b5fb (patch) | |
tree | e0d1bd6f0ee4ed60c4e80caa63f414042be411bd /configure | |
parent | e0660740d9e3cc7487aab46866b7a87f35128b73 (diff) | |
download | nodejs-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-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |