summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-04-30 08:57:35 (GMT)
committerGeorg Brandl <georg@python.org>2006-04-30 08:57:35 (GMT)
commitbffb0bc064c25032264037e3c0405d7ab0d3c149 (patch)
tree402405c1b4a25a822a4174376002b348299b54fd /Lib/plat-mac
parentfa42bd7af429a909e3e964ffc8dcfa457e007ac8 (diff)
downloadcpython-bffb0bc064c25032264037e3c0405d7ab0d3c149.zip
cpython-bffb0bc064c25032264037e3c0405d7ab0d3c149.tar.gz
cpython-bffb0bc064c25032264037e3c0405d7ab0d3c149.tar.bz2
In stdlib, use hashlib instead of deprecated md5 and sha modules.
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r--Lib/plat-mac/pimp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-mac/pimp.py b/Lib/plat-mac/pimp.py
index 21923ec..456427c 100644
--- a/Lib/plat-mac/pimp.py
+++ b/Lib/plat-mac/pimp.py
@@ -21,7 +21,7 @@ import urlparse
import plistlib
import distutils.util
import distutils.sysconfig
-import md5
+import hashlib
import tarfile
import tempfile
import shutil
@@ -693,7 +693,7 @@ class PimpPackage:
sys.stderr.write("Warning: no MD5Sum for %s\n" % self.fullname())
return 1
data = open(self.archiveFilename, 'rb').read()
- checksum = md5.new(data).hexdigest()
+ checksum = hashlib.md5(data).hexdigest()
return checksum == self._dict['MD5Sum']
def unpackPackageOnly(self, output=None):