summaryrefslogtreecommitdiff
path: root/Modules/cPickle.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r--Modules/cPickle.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index 1dd35be645..06726eed9c 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -5710,6 +5710,12 @@ initcPickle(void)
PyObject *format_version;
PyObject *compatible_formats;
+ /* XXX: Should mention that the pickle module will include the C
+ XXX: optimized implementation automatically. */
+ if (PyErr_WarnPy3k("the cPickle module has been removed in "
+ "Python 3.0", 2) < 0)
+ return;
+
Py_TYPE(&Picklertype) = &PyType_Type;
Py_TYPE(&Unpicklertype) = &PyType_Type;
Py_TYPE(&PdataType) = &PyType_Type;