str -> bytes

This commit is contained in:
meejah 2019-07-08 14:16:37 -06:00
parent c2c2eda52e
commit c6d41b310a

View File

@ -23,7 +23,7 @@ class _SHA256d_Hasher(object):
self._digest = None
def update(self, data):
assert isinstance(data, str) # no unicode
assert isinstance(data, bytes) # no unicode
self.h.update(data)
def digest(self):