Permalink
Browse files

fix format of output file

  • Loading branch information...
1 parent de63647 commit b432d10efde54780004d0e79ad73f301997be147 @pavel-paulau committed Nov 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 btrc
View
4 btrc
@@ -1,6 +1,6 @@
#!/usr/bin/env python
import sys
-from pprint import pprint
+import json
from optparse import OptionParser
import requests
@@ -79,7 +79,7 @@ def main():
filename = node.replace(':', '_') + ddoc.replace('/', '_') + '.json'
with open(filename, 'w') as fh:
print 'Saving btree stats to: ' + filename
- pprint(stat, fh)
+ fh.write(json.dumps(stat, indent=4, sort_keys=True))
if __name__ == '__main__':

0 comments on commit b432d10

Please sign in to comment.