Skip to content
Snippets Groups Projects
Commit 0c83de0b authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

fixing sha512 call

parent f65efbce
No related branches found
No related tags found
No related merge requests found
import json import json
from nomadcore.compact_sha import sha512
"""Various functions to simplify and standardize dumping objects to json""" """Various functions to simplify and standardize dumping objects to json"""
class ExtraIndenter(object): class ExtraIndenter(object):
...@@ -95,7 +97,7 @@ class ShaStreamer(object): ...@@ -95,7 +97,7 @@ class ShaStreamer(object):
def __init__(self, shas = None): def __init__(self, shas = None):
self.shas = shas self.shas = shas
if shas is None: if shas is None:
self.shas = (CompactSha.sha224(),) self.shas = (sha512(),)
def write(self, val): def write(self, val):
for sha in self.shas: for sha in self.shas:
sha.update(val) sha.update(val)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment