summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-16 19:14:31 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-16 19:14:31 (GMT)
commit3c4971c40eb97ac69a49ab53d04b22b9d80c0ef9 (patch)
tree7b245640d8d267c17f87d8638d5595a659aa7038 /Modules
parentea0b22a167f25deaf170da2c321fbd9d64af1ab3 (diff)
downloadcpython-3c4971c40eb97ac69a49ab53d04b22b9d80c0ef9.zip
cpython-3c4971c40eb97ac69a49ab53d04b22b9d80c0ef9.tar.gz
cpython-3c4971c40eb97ac69a49ab53d04b22b9d80c0ef9.tar.bz2
Added Python 3.0 warning to cPickle.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cPickle.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index 1dd35be..06726ee 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;