'Flushes the decoder. Should only be called if the decoder is actually
being used.'

def _flush_decoder(self):

    if self._decoder:
        buf = self._decoder.decompress('')
        return (buf + self._decoder.flush())
    return ''
