configure: don't use "with" for Python 2.5 and older

pull/24503/head
Nathan Rajlich 2012-04-11 11:16:11 -07:00
parent e0660740d9
commit fdeeabba78
1 changed files with 2 additions and 2 deletions

4
configure vendored
View File

@ -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))