We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03addd7 commit b33d9e1Copy full SHA for b33d9e1
Doc/library/zlib.rst
@@ -311,8 +311,8 @@ Decompression objects support the following methods and attributes:
311
For example, the full content could be read like::
312
313
process_output(d.decompress(data, max_length))
314
- while d.unconsumed_tail:
315
- process_output(d.decompress(d.unconsumed_tail, max_length))
+ while chunk := d.decompress(d.unconsumed_tail, max_length):
+ process_output(chunk)
316
317
.. versionchanged:: 3.6
318
*max_length* can be used as a keyword argument.
0 commit comments