summaryrefslogtreecommitdiffstats
path: root/Modules/bz2module.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-11-01 17:10:19 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2004-11-01 17:10:19 (GMT)
commitbb9c739806b9f0251fa4a564986e2cb5e92e766e (patch)
treee98ea3d19448ce76e31182e06d88a3a765592066 /Modules/bz2module.c
parentbc1d1b80d1abfd7f95cb02e7f09be18b94504559 (diff)
downloadcpython-bb9c739806b9f0251fa4a564986e2cb5e92e766e.zip
cpython-bb9c739806b9f0251fa4a564986e2cb5e92e766e.tar.gz
cpython-bb9c739806b9f0251fa4a564986e2cb5e92e766e.tar.bz2
Add error checks for the bz2, cStringIO and operator modules.
Add function names to various PyArg_ParseTuple calls in bz2module.c.
Diffstat (limited to 'Modules/bz2module.c')
-rw-r--r--Modules/bz2module.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index c75011d..8a93cd9 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -787,7 +787,7 @@ BZ2File_write(BZ2FileObject *self, PyObject *args)
int len;
int bzerror;
- if (!PyArg_ParseTuple(args, "s#", &buf, &len))
+ if (!PyArg_ParseTuple(args, "s#:write", &buf, &len))
return NULL;
ACQUIRE_LOCK(self);
@@ -1500,7 +1500,7 @@ BZ2Comp_compress(BZ2CompObject *self, PyObject *args)
bz_stream *bzs = &self->bzs;
int bzerror;
- if (!PyArg_ParseTuple(args, "s#", &data, &datasize))
+ if (!PyArg_ParseTuple(args, "s#:compress", &data, &datasize))
return NULL;
if (datasize == 0)
@@ -1781,7 +1781,7 @@ BZ2Decomp_decompress(BZ2DecompObject *self, PyObject *args)
bz_stream *bzs = &self->bzs;
int bzerror;
- if (!PyArg_ParseTuple(args, "s#", &data, &datasize))
+ if (!PyArg_ParseTuple(args, "s#:decompress", &data, &datasize))
return NULL;
ACQUIRE_LOCK(self);
@@ -2069,7 +2069,7 @@ bz2_decompress(PyObject *self, PyObject *args)
bz_stream *bzs = &_bzs;
int bzerror;
- if (!PyArg_ParseTuple(args, "s#", &data, &datasize))
+ if (!PyArg_ParseTuple(args, "s#:decompress", &data, &datasize))
return NULL;
if (datasize == 0)