@@ -234,18 +234,6 @@ decompress(IgzipDecompressor *self, uint8_t *data, size_t len, Py_ssize_t max_le
234
234
return NULL ;
235
235
}
236
236
237
- static PyObject *
238
- igzip_lib_IgzipDecompressor_decompress_impl (IgzipDecompressor * self , Py_buffer * data ,
239
- Py_ssize_t max_length )
240
- {
241
- PyObject * result = NULL ;
242
- if (self -> eof )
243
- PyErr_SetString (PyExc_EOFError , "End of stream already reached" );
244
- else
245
- result = decompress (self , data -> buf , data -> len , max_length );
246
- return result ;
247
- }
248
-
249
237
PyDoc_STRVAR (igzip_lib_compress__doc__ ,
250
238
"compress($module, data, /, level=ISAL_DEFAULT_COMPRESSION, flag=COMP_DEFLATE,\n"
251
239
" mem_level=MEM_LEVEL_DEFAULT, hist_bits=MAX_HIST_BITS)\n"
@@ -365,10 +353,13 @@ igzip_lib_IgzipDecompressor_decompress(IgzipDecompressor *self, PyObject *args,
365
353
args , kwargs , format , keywords , & data , & max_length )) {
366
354
return NULL ;
367
355
}
368
-
369
- PyObject * return_value = igzip_lib_IgzipDecompressor_decompress_impl (self , & data , max_length );
356
+ PyObject * result = NULL ;
357
+ if (self -> eof )
358
+ PyErr_SetString (PyExc_EOFError , "End of stream already reached" );
359
+ else
360
+ result = decompress (self , data .buf , data .len , max_length );
370
361
PyBuffer_Release (& data );
371
- return return_value ;
362
+ return result ;
372
363
}
373
364
374
365
PyDoc_STRVAR (igzip_lib_IgzipDecompressor___init____doc__ ,
0 commit comments