commit | fdeeabba784f5581d630589fb9667bdab237b5fb | [log] [tgz] |
---|---|---|
author | Nathan Rajlich <[email protected]> | Wed Apr 11 18:16:11 2012 |
committer | Nathan Rajlich <[email protected]> | Wed Apr 11 18:16:11 2012 |
tree | e0d1bd6f0ee4ed60c4e80caa63f414042be411bd | |
parent | e0660740d9e3cc7487aab46866b7a87f35128b73 [diff] [blame] |
configure: don't use "with" for Python 2.5 and older
diff --git a/configure b/configure index 1a94251..ef34cf8 100755 --- a/configure +++ b/configure
@@ -342,8 +342,8 @@ 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))