diff options
| author | Andrew M. Kuchling <amk@amk.ca> | 2003-04-24 13:17:13 +0000 |
|---|---|---|
| committer | Andrew M. Kuchling <amk@amk.ca> | 2003-04-24 13:17:13 +0000 |
| commit | 360088f2064380061eb3dfa39bfd3e704065be35 (patch) | |
| tree | 40c97702cdf03a28d991674ccbe35d22da30d174 | |
| parent | 366a0feb9a7794a9f72ab0b37d36b6427e6d3bd1 (diff) | |
| download | cpython-git-360088f2064380061eb3dfa39bfd3e704065be35.tar.gz | |
[Patch #679505] Trigger DeprecationWarning on importing the rotor module
| -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 dcca0c6174..6759244efa 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; } |
