From 428d872be7b0896f85dd5bbd83df8a2d2f429b42 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Thu, 3 Sep 2009 00:59:17 -0500 Subject: Updated some python scripts to not use deprecated modules. --- linden/scripts/install.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'linden/scripts') diff --git a/linden/scripts/install.py b/linden/scripts/install.py index f886a6e..3843c83 100755 --- a/linden/scripts/install.py +++ b/linden/scripts/install.py @@ -34,7 +34,7 @@ $/LicenseInfo$ """ import copy -import md5 +from hashlib import md5 import optparse import os import platform @@ -46,8 +46,6 @@ import tempfile import urllib2 import urlparse -from sets import Set as set, ImmutableSet as frozenset - # Locate -our- python library relative to our install location. from os.path import realpath, dirname, join @@ -76,7 +74,7 @@ class InstallFile(object): return "ifile{%s:%s}" % (self.pkgname, self.url) def _is_md5sum_match(self): - hasher = md5.new(file(self.filename, 'rb').read()) + hasher = md5(file(self.filename, 'rb').read()) if hasher.hexdigest() == self.md5sum: return True return False -- cgit v1.1