diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2003-04-24 13:17:13 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2003-04-24 13:17:13 (GMT) |
commit | 360088f2064380061eb3dfa39bfd3e704065be35 (patch) | |
tree | 40c97702cdf03a28d991674ccbe35d22da30d174 /Modules | |
parent | 366a0feb9a7794a9f72ab0b37d36b6427e6d3bd1 (diff) | |
download | cpython-360088f2064380061eb3dfa39bfd3e704065be35.zip cpython-360088f2064380061eb3dfa39bfd3e704065be35.tar.gz cpython-360088f2064380061eb3dfa39bfd3e704065be35.tar.bz2 |
[Patch #679505] Trigger DeprecationWarning on importing the rotor module
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/rotormodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ 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; } |