summaryrefslogtreecommitdiff
path: root/__init__.py
diff options
context:
space:
mode:
authorzyp <zyp@localhost>2006-05-08 14:54:40 +0200
committerzyp <zyp@localhost>2006-05-08 14:54:40 +0200
commit3a5b32f44a95b989e39273527fc924ad3d32465e (patch)
treead977e8cdaf459f5a8b0c08f120a8ed604b5f561 /__init__.py
[project @ zyp-20060508125440-a3cc6ea65de180a0]
[project @ 23] Seperated from disccat to a standalone project.
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/__init__.py b/__init__.py
new file mode 100644
index 0000000..0333819
--- /dev/null
+++ b/__init__.py
@@ -0,0 +1,11 @@
+from _hash import *
+
+def file_hash(name):
+ h = Hash()
+ 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