From dc76098ccb93f6c242cd6acfbc7c7adb842b09e3 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 16 Nov 2008 21:06:41 +0000 Subject: Make more objects get pretty-printed when signed git-svn-id: file:///home/or/svnrepo/updater/trunk@17290 55e972cd-5a19-0410-ae62-a4d7a52db4cd --- lib/thandy/SignerCLI.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/thandy/SignerCLI.py b/lib/thandy/SignerCLI.py index 524981a..55adb41 100644 --- a/lib/thandy/SignerCLI.py +++ b/lib/thandy/SignerCLI.py @@ -78,7 +78,7 @@ def makepackage(args): 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 @@ def makebundle(args): 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 @@ def dumpkey(args): 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:" -- cgit v1.2.3