commit | ac861b5a172a389f7d062fee6d88ded17e458b2e | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Mon May 12 03:45:59 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Mon May 12 03:45:59 2008 +0000 |
tree | 8c449ab581aea2b5fb513068d31fd42928d86413 | |
parent | 43e5ef49b12ccba2c43ea003316a3ff23677fe0f [diff] [blame] |
Deprecate the sv module as per PEP 4.
diff --git a/Modules/svmodule.c b/Modules/svmodule.c index fb58f19..3845e20 100644 --- a/Modules/svmodule.c +++ b/Modules/svmodule.c
@@ -954,6 +954,10 @@ initsv(void) { PyObject *m, *d; + + if (PyErr_WarnPy3k("the sv module has been removed in " + "Python 3.0", 2) < 0) + return; m = Py_InitModule("sv", sv_methods); if (m == NULL)