From e19c4d106d1369e73d916ad4d87b3be5d1d1b1f6 Mon Sep 17 00:00:00 2001 From: zyp Date: Mon, 23 Oct 2006 22:25:03 +0000 Subject: [project @ zyp-20061023222503-ba6be89fef3b5f39] [project @ 62] Solved performance problem. --- multihash/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'multihash') 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 -- cgit v1.2.3