[or-cvs] r17290: {updater} Make more objects get pretty-printed when signed (updater/trunk/lib/thandy)

nickm at seul.org nickm at seul.org
Sun Nov 16 21:06:42 UTC 2008


Author: nickm
Date: 2008-11-16 16:06:41 -0500 (Sun, 16 Nov 2008)
New Revision: 17290

Modified:
   updater/trunk/lib/thandy/SignerCLI.py
Log:
Make more objects get pretty-printed when signed

Modified: updater/trunk/lib/thandy/SignerCLI.py
===================================================================
--- updater/trunk/lib/thandy/SignerCLI.py	2008-11-16 20:35:53 UTC (rev 17289)
+++ updater/trunk/lib/thandy/SignerCLI.py	2008-11-16 21:06:41 UTC (rev 17290)
@@ -78,7 +78,7 @@
     location = os.path.split(package['location'])[-1]
     print "Writing signed package to %s"%location
     f = open(location, 'w')
-    json.dump(signable, f, indent=1)
+    json.dump(signable, f, indent=1, sort_keys=True)
     f.close()
 
 def makebundle(args):
@@ -118,7 +118,7 @@
     location = os.path.split(bundleObj['location'])[-1]
     print "Writing signed bundle to %s"%location
     f = open(location, 'w')
-    json.dump(signable, f, indent=1)
+    json.dump(signable, f, indent=1, sort_keys=True)
     f.close()
 
 # ------------------------------
@@ -280,7 +280,7 @@
 
     for k in keys:
         data = k.format(private=includeSecret, includeRoles=True)
-        print "Key(", json.dumps(data, indent=2), ")"
+        print "Key(", json.dumps(data, indent=2, sort_keys=True), ")"
 
 def usage():
     print "Known commands:"



More information about the tor-commits mailing list