Skip to content

Instantly share code, notes, and snippets.

@jbergstroem
Created November 30, 2011 17:05
Show Gist options
  • Save jbergstroem/1409830 to your computer and use it in GitHub Desktop.
Save jbergstroem/1409830 to your computer and use it in GitHub Desktop.
s/json/pprint/
diff --git a/configure b/configure
index d767508..dd50189 100755
--- a/configure
+++ b/configure
@@ -2,7 +2,7 @@
import optparse
import os
-import json
+from pprint import pprint
import subprocess
import sys
@@ -248,7 +248,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(output, stream=f)
f.write("\n")
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment