More reformatting.

This commit is contained in:
Jeremy Hylton 2001-10-16 21:59:35 +00:00
parent 0965e084cd
commit 4990000077
1 changed files with 48 additions and 49 deletions

View File

@ -347,12 +347,12 @@ PyZlib_compressobj(PyObject *selfptr, PyObject *args)
return NULL; return NULL;
self = newcompobject(&Comptype); self = newcompobject(&Comptype);
if (self==NULL) return(NULL); if (self==NULL)
return(NULL);
self->zst.zalloc = (alloc_func)NULL; self->zst.zalloc = (alloc_func)NULL;
self->zst.zfree = (free_func)Z_NULL; self->zst.zfree = (free_func)Z_NULL;
err = deflateInit2(&self->zst, level, method, wbits, memLevel, strategy); err = deflateInit2(&self->zst, level, method, wbits, memLevel, strategy);
switch(err) switch(err) {
{
case (Z_OK): case (Z_OK):
self->is_initialised = 1; self->is_initialised = 1;
return (PyObject*)self; return (PyObject*)self;
@ -379,16 +379,15 @@ PyZlib_decompressobj(PyObject *selfptr, PyObject *args)
int wbits=DEF_WBITS, err; int wbits=DEF_WBITS, err;
compobject *self; compobject *self;
if (!PyArg_ParseTuple(args, "|i:decompressobj", &wbits)) if (!PyArg_ParseTuple(args, "|i:decompressobj", &wbits))
{
return NULL; return NULL;
}
self=newcompobject(&Decomptype); self = newcompobject(&Decomptype);
if (self==NULL) return(NULL); if (self==NULL)
self->zst.zalloc=(alloc_func)NULL; return(NULL);
self->zst.zfree=(free_func)Z_NULL; self->zst.zalloc = (alloc_func)NULL;
err=inflateInit2(&self->zst, wbits); self->zst.zfree = (free_func)Z_NULL;
switch(err) err = inflateInit2(&self->zst, wbits);
{ switch(err) {
case (Z_OK): case (Z_OK):
self->is_initialised = 1; self->is_initialised = 1;
return (PyObject*)self; return (PyObject*)self;