summaryrefslogtreecommitdiff
path: root/lib/thandy/formats.py
diff options
context:
space:
mode:
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,