From df9c15d40a50ed17baa7bdbb11ef6cca9d410cf3 Mon Sep 17 00:00:00 2001 From: zyp Date: Mon, 8 May 2006 13:23:20 +0000 Subject: [project @ zyp-20060508132320-2c118d1a7e2505db] [project @ 24] Converted from make to distutils. --- multihash/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 multihash/__init__.py (limited to 'multihash') diff --git a/multihash/__init__.py b/multihash/__init__.py new file mode 100644 index 0000000..5bcf4d5 --- /dev/null +++ b/multihash/__init__.py @@ -0,0 +1,11 @@ +from _multihash import * + +def file_hash(name): + h = Multihash() + f = open(name) + data = f.read(32768) + while data: + h.update(data) + data = f.read(32768) + f.close() + return h \ No newline at end of file -- cgit v1.2.3