mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Have md5 raise a DeprecationWarning as per PEP 4.
This commit is contained in:
parent
c249bdab92
commit
7eec217908
6 changed files with 17 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue