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

This commit is contained in:
Andrew M. Kuchling 2003-04-24 13:17:13 +00:00
parent 366a0feb9a
commit 360088f206
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}