diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-10 21:20:19 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-10 21:20:19 (GMT) |
commit | 7f874fce630605027adc4f44e89e84569353216a (patch) | |
tree | f0e187f629741876f6de134f9918c66460d37a27 /Modules/dlmodule.c | |
parent | 0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf (diff) | |
download | cpython-7f874fce630605027adc4f44e89e84569353216a.zip cpython-7f874fce630605027adc4f44e89e84569353216a.tar.gz cpython-7f874fce630605027adc4f44e89e84569353216a.tar.bz2 |
Deprecate the dl module for removal in 3.0.
Diffstat (limited to 'Modules/dlmodule.c')
-rw-r--r-- | Modules/dlmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/dlmodule.c b/Modules/dlmodule.c index 2b50ed6..112e635 100644 --- a/Modules/dlmodule.c +++ b/Modules/dlmodule.c @@ -235,6 +235,10 @@ initdl(void) { PyObject *m, *d, *x; + if (PyErr_WarnPy3k("the dl module has been removed in " + "Python 3.0", 2) < 0) + return; + /* Initialize object type */ Py_TYPE(&Dltype) = &PyType_Type; |