summaryrefslogtreecommitdiff
path: root/ed2k/__init__.py
diff options
context:
space:
mode:
authorzyp <zyp@localhost>2006-05-11 18:34:59 +0200
committerzyp <zyp@localhost>2006-05-11 18:34:59 +0200
commitea36dd2639b7b562aee9aa587489be9bf9bc4c73 (patch)
treea5a17cfef9f044850fa225f68d212ad37bcc5d6a /ed2k/__init__.py
parentd4f7c7d7f6311d420a8b3ecac72659f499d3c848 (diff)
[project @ zyp-20060511163459-2e238e10d316fe12]
[project @ 29] Adapted pyanidb to distutils.
Diffstat (limited to 'ed2k/__init__.py')
-rw-r--r--ed2k/__init__.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/ed2k/__init__.py b/ed2k/__init__.py
deleted file mode 100644
index 754b5c9..0000000
--- a/ed2k/__init__.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from _ed2k import *
-
-def file_hash(name):
- e = Ed2k()
- f = open(name)
- data = f.read(32768)
- while data:
- e.update(data)
- data = f.read(32768)
- f.close()
- return e.digest()