summaryrefslogtreecommitdiffstats
path: root/tupkg
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-11-13 17:27:20 -0500
committerLoui Chang <louipc.ist@gmail.com>2008-11-13 17:27:20 -0500
commitb8f86c505b95b73b532043637bf5230270416a49 (patch)
tree3f24f042e2f5ee0500428111412e77f5497b95e8 /tupkg
parentf12b11abc70b03fa75faf211a6311acb1cc1b32d (diff)
downloadaurweb-b8f86c505b95b73b532043637bf5230270416a49.tar.xz
Update tupkg to use hashlib instead of md5 directly.
Reported-by: Imanol Celaya <ilcra1989@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'tupkg')
-rwxr-xr-xtupkg/client/tupkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/tupkg/client/tupkg b/tupkg/client/tupkg
index a1d26d5..f9980e6 100755
--- a/tupkg/client/tupkg
+++ b/tupkg/client/tupkg
@@ -19,10 +19,11 @@ import struct
import os.path
import cgi
import urllib
-import md5
import getopt
import ConfigParser
+from hashlib import md5
+
class ClientFile:
def __init__(self, pathname):
self.pathname = pathname