From 3b9e8e91df3c0a0aa65eecd67115cecf8c3a3a2b Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" <antoine.romain.dumont@gmail.com> Date: Fri, 14 Sep 2018 23:32:31 +0200 Subject: [PATCH] hashutil: Set the hash_names defaulting to swh default hash algo --- swh/model/hashutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swh/model/hashutil.py b/swh/model/hashutil.py index bda5389c..1bdaadbe 100644 --- a/swh/model/hashutil.py +++ b/swh/model/hashutil.py @@ -67,7 +67,7 @@ class MultiHash: computed and returned. """ - def __init__(self, hash_names, length=None): + def __init__(self, hash_names=DEFAULT_ALGORITHMS, length=None): self.state = {} self.track_length = False for name in hash_names: -- GitLab