diff options
Diffstat (limited to 'multihash/__init__.py')
-rw-r--r-- | multihash/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/multihash/__init__.py b/multihash/__init__.py index 9be422f..d31920f 100644 --- a/multihash/__init__.py +++ b/multihash/__init__.py @@ -17,8 +17,8 @@ class Multihash: self.update = h.update self.first = h -def hash_file(name, *args): +def hash_file(name, *algorithms): f = open(name) - h = Multihash() + h = Multihash(*algorithms) _hash_file(f.fileno(), h.first) return h
\ No newline at end of file |