mirror of https://github.com/nodejs/node.git
gyp: switch json for pprint when generating config
parent
f9994114ab
commit
45605c9b39
|
@ -2,13 +2,12 @@
|
|||
|
||||
import optparse
|
||||
import os
|
||||
import json
|
||||
import pprint
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
root_dir = os.path.dirname(__file__)
|
||||
sys.path.insert(0, os.path.join(root_dir, 'deps', 'v8', 'tools'))
|
||||
import utils # GuessArchitecture
|
||||
|
||||
# parse our options
|
||||
parser = optparse.OptionParser()
|
||||
|
@ -262,7 +261,7 @@ print "creating ", fn
|
|||
|
||||
f = open(fn, 'w+')
|
||||
f.write("# Do not edit. Generated by the configure script.\n")
|
||||
json.dump(output, f, indent=2, skipkeys=True)
|
||||
pprint.pprint(output, stream=f, indent=2)
|
||||
f.write("\n")
|
||||
f.close()
|
||||
|
||||
|
|
Loading…
Reference in New Issue