mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-20 03:36:25 +00:00
str -> bytes
This commit is contained in:
parent
c2c2eda52e
commit
c6d41b310a
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user