commit | 7f874fce630605027adc4f44e89e84569353216a | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Sat May 10 21:20:19 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Sat May 10 21:20:19 2008 +0000 |
tree | f0e187f629741876f6de134f9918c66460d37a27 | |
parent | 0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf [diff] |
Deprecate the dl module for removal in 3.0.
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 @@ { 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;