summaryrefslogtreecommitdiffstats
path: root/tupkg/client
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-01-04 22:27:50 +0100
committerLoui Chang <louipc.ist@gmail.com>2009-01-04 22:27:50 +0100
commit6c3e393d4ea2e2d1c518433f5b74a4996dca3404 (patch)
tree6f291797c6c9037f9d045bdebdf4d850d56b84dc /tupkg/client
parent207b565f1c05c556f05f4a549afeeb8878a3c372 (diff)
downloadaur-6c3e393d4ea2e2d1c518433f5b74a4996dca3404.tar.gz
aur-6c3e393d4ea2e2d1c518433f5b74a4996dca3404.tar.xz
Correct hashlib.md5 usage in tupkg and tupkgs.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'tupkg/client')
-rwxr-xr-xtupkg/client/tupkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/tupkg/client/tupkg b/tupkg/client/tupkg
index f9980e61..af7d0547 100755
--- a/tupkg/client/tupkg
+++ b/tupkg/client/tupkg
@@ -35,7 +35,7 @@ class ClientFile:
self.makeMd5()
def makeMd5(self):
- md5sum = md5.new()
+ md5sum = md5()
while self.fd.tell() != self.size:
md5sum.update(self.fd.read(1024))
self.md5 = md5sum.hexdigest()