More reformatting.
This commit is contained in:
parent
0965e084cd
commit
4990000077
|
@ -347,12 +347,12 @@ PyZlib_compressobj(PyObject *selfptr, PyObject *args)
|
|||
return NULL;
|
||||
|
||||
self = newcompobject(&Comptype);
|
||||
if (self==NULL) return(NULL);
|
||||
if (self==NULL)
|
||||
return(NULL);
|
||||
self->zst.zalloc = (alloc_func)NULL;
|
||||
self->zst.zfree = (free_func)Z_NULL;
|
||||
err = deflateInit2(&self->zst, level, method, wbits, memLevel, strategy);
|
||||
switch(err)
|
||||
{
|
||||
switch(err) {
|
||||
case (Z_OK):
|
||||
self->is_initialised = 1;
|
||||
return (PyObject*)self;
|
||||
|
@ -379,16 +379,15 @@ PyZlib_decompressobj(PyObject *selfptr, PyObject *args)
|
|||
int wbits=DEF_WBITS, err;
|
||||
compobject *self;
|
||||
if (!PyArg_ParseTuple(args, "|i:decompressobj", &wbits))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
self=newcompobject(&Decomptype);
|
||||
if (self==NULL) return(NULL);
|
||||
self->zst.zalloc=(alloc_func)NULL;
|
||||
self->zst.zfree=(free_func)Z_NULL;
|
||||
err=inflateInit2(&self->zst, wbits);
|
||||
switch(err)
|
||||
{
|
||||
|
||||
self = newcompobject(&Decomptype);
|
||||
if (self==NULL)
|
||||
return(NULL);
|
||||
self->zst.zalloc = (alloc_func)NULL;
|
||||
self->zst.zfree = (free_func)Z_NULL;
|
||||
err = inflateInit2(&self->zst, wbits);
|
||||
switch(err) {
|
||||
case (Z_OK):
|
||||
self->is_initialised = 1;
|
||||
return (PyObject*)self;
|
||||
|
|
Loading…
Reference in New Issue