Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
configure: don't use "with" for Python 2.5 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Apr 11, 2012
1 parent e066074 commit fdeeabb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure
Expand Up @@ -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))
Expand Down

0 comments on commit fdeeabb

Please sign in to comment.