Revert "Revert "Merge pull request #682 from jzelinskie/revertrevert""
This reverts commit 278bc736e3
.
This commit is contained in:
parent
05262125a0
commit
e973289397
11 changed files with 236 additions and 65 deletions
|
@ -68,7 +68,7 @@ def compute_tarsum(fp, json_data):
|
|||
|
||||
|
||||
def simple_checksum_handler(json_data):
|
||||
h = hashlib.sha256(json_data + '\n')
|
||||
h = hashlib.sha256(json_data.encode('utf8') + '\n')
|
||||
|
||||
def fn(buf):
|
||||
h.update(buf)
|
||||
|
|
Reference in a new issue