summaryrefslogtreecommitdiff
path: root/Modules/dlmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/dlmodule.c')
-rw-r--r--Modules/dlmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/dlmodule.c b/Modules/dlmodule.c
index 2b50ed63ab..112e6350e2 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;