diff options
author | zyp <zyp@localhost> | 2006-10-24 00:25:03 +0200 |
---|---|---|
committer | zyp <zyp@localhost> | 2006-10-24 00:25:03 +0200 |
commit | e19c4d106d1369e73d916ad4d87b3be5d1d1b1f6 (patch) | |
tree | 36de32b20fb8702bdcb38589ac474d6b5307f845 /multihash | |
parent | 06b49ba69db808608690395778f3608ea51c8d74 (diff) |
[project @ zyp-20061023222503-ba6be89fef3b5f39]
[project @ 62]
Solved performance problem.
Diffstat (limited to 'multihash')
-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 |