This commit is contained in:
Gregory Becker 2016-05-05 18:13:56 -07:00
parent 9a39ccea8f
commit 2f821b9e9b

View File

@ -756,7 +756,7 @@ def dag_hash(self, length=None):
""" """
yaml_text = yaml.dump( yaml_text = yaml.dump(
self.to_node_dict(), default_flow_style=True, width=sys.maxint) self.to_node_dict(), default_flow_style=True, width=sys.maxint)
print yaml_text # print yaml_text
sha = hashlib.sha1(yaml_text) sha = hashlib.sha1(yaml_text)
return base64.b32encode(sha.digest()).lower()[:length] return base64.b32encode(sha.digest()).lower()[:length]