[Python-checkins] cpython: Fix incorrect comment in zlib.Decompress.flush().
nadeem.vawda
python-checkins at python.org
Sat Aug 13 15:45:45 CEST 2011
http://hg.python.org/cpython/rev/65d61ed991d9
changeset: 71858:65d61ed991d9
user: Nadeem Vawda <nadeem.vawda at gmail.com>
date: Sat Aug 13 15:42:50 2011 +0200
summary:
Fix incorrect comment in zlib.Decompress.flush().
Reported by Oleg Oshmyan in issue #12646.
files:
Modules/zlibmodule.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -886,9 +886,7 @@
Py_END_ALLOW_THREADS
}
- /* If flushmode is Z_FINISH, we also have to call deflateEnd() to free
- various data structures. Note we should only get Z_STREAM_END when
- flushmode is Z_FINISH */
+ /* If at end of stream, clean up any memory allocated by zlib. */
if (err == Z_STREAM_END) {
self->eof = 1;
self->is_initialised = 0;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list