From 15e62742fad688b026ba80bf17d1345c4cbd423b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 27 Feb 2006 16:46:16 +0000 Subject: Revert backwards-incompatible const changes. --- Modules/bz2module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Modules/bz2module.c') diff --git a/Modules/bz2module.c b/Modules/bz2module.c index c8fab7a59b..ed329b8a0f 100644 --- a/Modules/bz2module.c +++ b/Modules/bz2module.c @@ -1275,7 +1275,7 @@ static PyMemberDef BZ2File_members[] = { static int BZ2File_init(BZ2FileObject *self, PyObject *args, PyObject *kwargs) { - static const char *kwlist[] = {"filename", "mode", "buffering", + static char *kwlist[] = {"filename", "mode", "buffering", "compresslevel", 0}; PyObject *name; char *mode = "r"; @@ -1664,7 +1664,7 @@ BZ2Comp_init(BZ2CompObject *self, PyObject *args, PyObject *kwargs) { int compresslevel = 9; int bzerror; - static const char *kwlist[] = {"compresslevel", 0}; + static char *kwlist[] = {"compresslevel", 0}; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|i:BZ2Compressor", kwlist, &compresslevel)) @@ -2009,7 +2009,7 @@ bz2_compress(PyObject *self, PyObject *args, PyObject *kwargs) bz_stream _bzs; bz_stream *bzs = &_bzs; int bzerror; - static const char *kwlist[] = {"data", "compresslevel", 0}; + static char *kwlist[] = {"data", "compresslevel", 0}; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s#|i", kwlist, &data, &datasize, -- cgit v1.2.1