summaryrefslogtreecommitdiff
path: root/lib/thandy/formats.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-11-22 19:13:10 +0000
committerNick Mathewson <nickm@torproject.org>2008-11-22 19:13:10 +0000
commitcff6c8bac612ae4ed598ef222ada02d3a83ecaa1 (patch)
tree4a64951ef30e6795ef2dcebff20c302751885227 /lib/thandy/formats.py
parentd077d211bbfabeecf0b175df6bfb8e4e96a30747 (diff)
Add a quick and dirty thandy-client json2xml command. I am going to regret this someday.
git-svn-id: file:///home/or/svnrepo/updater/trunk@17366 55e972cd-5a19-0410-ae62-a4d7a52db4cd
Diffstat (limited to 'lib/thandy/formats.py')
-rw-r--r--lib/thandy/formats.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/thandy/formats.py b/lib/thandy/formats.py
index cf9ff1f..1fd0eb1 100644
--- a/lib/thandy/formats.py
+++ b/lib/thandy/formats.py
@@ -173,7 +173,7 @@ def _encodeCanonical(obj, outf):
elif obj is True:
outf("true")
elif obj is False:
- outf("false")
+ outf("false")
elif obj is None:
outf("null")
elif isinstance(obj, (int,long)):
@@ -235,7 +235,6 @@ def encodeCanonical(obj, outf=None):
if result is not None:
return "".join(result)
-
def getDigest(obj, digestObj=None):
"""Update 'digestObj' (typically a SHA256 object) with the digest of
the canonical json encoding of obj. If digestObj is none,