commit | 360088f2064380061eb3dfa39bfd3e704065be35 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Thu Apr 24 13:17:13 2003 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Thu Apr 24 13:17:13 2003 +0000 |
tree | 40c97702cdf03a28d991674ccbe35d22da30d174 | |
parent | 366a0feb9a7794a9f72ab0b37d36b6427e6d3bd1 [diff] [blame] |
[Patch #679505] Trigger DeprecationWarning on importing the rotor module
diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c index dcca0c6..6759244 100644 --- a/Modules/rotormodule.c +++ b/Modules/rotormodule.c
@@ -620,4 +620,8 @@ { 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; }