Fix incorrect comment in zlib.Decompress.flush().

Reported by Oleg Oshmyan in issue #12646.
This commit is contained in:
Nadeem Vawda 2011-08-13 15:42:50 +02:00
parent 1c38546e49
commit 3bf71c54d8
1 changed files with 1 additions and 3 deletions

View File

@ -886,9 +886,7 @@ PyZlib_unflush(compobject *self, PyObject *args)
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
} }
/* If flushmode is Z_FINISH, we also have to call deflateEnd() to free /* If at end of stream, clean up any memory allocated by zlib. */
various data structures. Note we should only get Z_STREAM_END when
flushmode is Z_FINISH */
if (err == Z_STREAM_END) { if (err == Z_STREAM_END) {
self->eof = 1; self->eof = 1;
self->is_initialised = 0; self->is_initialised = 0;