diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-12 03:45:59 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-12 03:45:59 (GMT) |
commit | ac861b5a172a389f7d062fee6d88ded17e458b2e (patch) | |
tree | 8c449ab581aea2b5fb513068d31fd42928d86413 /Modules | |
parent | 43e5ef49b12ccba2c43ea003316a3ff23677fe0f (diff) | |
download | cpython-ac861b5a172a389f7d062fee6d88ded17e458b2e.zip cpython-ac861b5a172a389f7d062fee6d88ded17e458b2e.tar.gz cpython-ac861b5a172a389f7d062fee6d88ded17e458b2e.tar.bz2 |
Deprecate the sv module as per PEP 4.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/svmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ void 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) |