diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-05-30 22:24:28 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-05-30 22:24:28 +0000 |
commit | 7eec2179081c86e1a79c5f17b43346e14fc8fb53 (patch) | |
tree | db14dd573c2ec2801d4a622440f7d47235bec19f /Lib/test/test_tarfile.py | |
parent | c249bdab92cc6fd933fb4972356a3fb0a0865ec4 (diff) | |
download | cpython-git-7eec2179081c86e1a79c5f17b43346e14fc8fb53.tar.gz |
Have md5 raise a DeprecationWarning as per PEP 4.
Diffstat (limited to 'Lib/test/test_tarfile.py')
-rw-r--r-- | Lib/test/test_tarfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 04f9ba5ac8..67e52e904f 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -5,7 +5,7 @@ import os import shutil import tempfile import StringIO -import md5 +from hashlib import md5 import errno import unittest @@ -25,7 +25,7 @@ except ImportError: bz2 = None def md5sum(data): - return md5.new(data).hexdigest() + return md5(data).hexdigest() def path(path): return test_support.findfile(path) |