Skip to content
Browse files

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

  • Loading branch information...
1 parent e066074 commit fdeeabba784f5581d630589fb9667bdab237b5fb @TooTallNate TooTallNate committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 configure
View
4 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))

0 comments on commit fdeeabb

Please sign in to comment.
Something went wrong with that request. Please try again.