summaryrefslogtreecommitdiffstats
path: root/Modules/cPickle.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-27 16:46:16 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-27 16:46:16 (GMT)
commit15e62742fad688b026ba80bf17d1345c4cbd423b (patch)
treefb3545d1da59e94df32d48f21df620681b08765c /Modules/cPickle.c
parentf9f61b4aa281c1b19546dba7f1ee529b8b80bc9a (diff)
downloadcpython-15e62742fad688b026ba80bf17d1345c4cbd423b.zip
cpython-15e62742fad688b026ba80bf17d1345c4cbd423b.tar.gz
cpython-15e62742fad688b026ba80bf17d1345c4cbd423b.tar.bz2
Revert backwards-incompatible const changes.
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r--Modules/cPickle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index cb14627..727dcc9 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -2868,7 +2868,7 @@ newPicklerobject(PyObject *file, int proto)
static PyObject *
get_Pickler(PyObject *self, PyObject *args, PyObject *kwds)
{
- static const char *kwlist[] = {"file", "protocol", NULL};
+ static char *kwlist[] = {"file", "protocol", NULL};
PyObject *file = NULL;
int proto = 0;
@@ -5388,7 +5388,7 @@ Unpickler_setattr(Unpicklerobject *self, char *name, PyObject *value)
static PyObject *
cpm_dump(PyObject *self, PyObject *args, PyObject *kwds)
{
- static const char *kwlist[] = {"obj", "file", "protocol", NULL};
+ static char *kwlist[] = {"obj", "file", "protocol", NULL};
PyObject *ob, *file, *res = NULL;
Picklerobject *pickler = 0;
int proto = 0;
@@ -5417,7 +5417,7 @@ cpm_dump(PyObject *self, PyObject *args, PyObject *kwds)
static PyObject *
cpm_dumps(PyObject *self, PyObject *args, PyObject *kwds)
{
- static const char *kwlist[] = {"obj", "protocol", NULL};
+ static char *kwlist[] = {"obj", "protocol", NULL};
PyObject *ob, *file = 0, *res = NULL;
Picklerobject *pickler = 0;
int proto = 0;