mirror of
https://github.com/python/cpython
synced 2024-10-14 21:18:02 +00:00
[Patch #679505] Trigger DeprecationWarning on importing the rotor module
This commit is contained in:
parent
366a0feb9a
commit
360088f206
|
@ -620,4 +620,8 @@ initrotor(void)
|
|||
{
|
||||
Rotor_Type.ob_type = &PyType_Type;
|
||||
(void)Py_InitModule("rotor", rotor_methods);
|
||||
if (PyErr_Warn(PyExc_DeprecationWarning,
|
||||
"the rotor module uses an insecure algorithm "
|
||||
"and is deprecated") < 0)
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue