Commit 360088f2 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Patch #679505] Trigger DeprecationWarning on importing the rotor module

parent 366a0feb
......@@ -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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment