mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[Patch #679505] Trigger DeprecationWarning on importing the rotor module
This commit is contained in:
parent
366a0feb9a
commit
360088f206
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue