]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/util/hashutil.py
decentralized directories: integration and testing
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / util / hashutil.py
index a06b43d4387edfed16c7c157b2e20b281f617576..5bac1ae210f72cd1d3254f28e4a0dff4e878f591 100644 (file)
@@ -1,7 +1,11 @@
 from pycryptopp.hash.sha256 import SHA256
 import os
 
+class IntegrityCheckError(Exception):
+    pass
+
 def netstring(s):
+    assert isinstance(s, str), s
     return "%d:%s," % (len(s), s,)
 
 def tagged_hash(tag, val):