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/md5.py | |
parent | c249bdab92cc6fd933fb4972356a3fb0a0865ec4 (diff) | |
download | cpython-git-7eec2179081c86e1a79c5f17b43346e14fc8fb53.tar.gz |
Have md5 raise a DeprecationWarning as per PEP 4.
Diffstat (limited to 'Lib/md5.py')
-rw-r--r-- | Lib/md5.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/md5.py b/Lib/md5.py index bbe1984d14..f6433ccbc9 100644 --- a/Lib/md5.py +++ b/Lib/md5.py @@ -3,6 +3,10 @@ # Copyright (C) 2005 Gregory P. Smith (greg@electricrain.com) # Licensed to PSF under a Contributor Agreement. +import warnings +warnings.warn("the md5 module is deprecated; use hashlib instead", + DeprecationWarning, 2) + from hashlib import md5 new = md5 |