From fdeeabba784f5581d630589fb9667bdab237b5fb Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Wed, 11 Apr 2012 11:16:11 -0700 Subject: [PATCH] configure: don't use "with" for Python 2.5 and older --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 1a942517be8..ef34cf81015 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))