diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-11-16 21:06:41 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-11-16 21:06:41 +0000 |
commit | dc76098ccb93f6c242cd6acfbc7c7adb842b09e3 (patch) | |
tree | 6c679c6f14f138781781666b71ecf72b3f0dbf8b /lib | |
parent | 6be50e3880fc43593fba21caec282be17e883645 (diff) |
Make more objects get pretty-printed when signed
git-svn-id: file:///home/or/svnrepo/updater/trunk@17290 55e972cd-5a19-0410-ae62-a4d7a52db4cd
Diffstat (limited to 'lib')
-rw-r--r-- | lib/thandy/SignerCLI.py | 6 |
1 files changed, 3 insertions, 3 deletions
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:" |