]> granicus.if.org Git - python/commit
Issue #24496: Backport gzip examples to Python 2.
authorBerker Peksag <berker.peksag@gmail.com>
Thu, 25 Jun 2015 20:57:42 +0000 (23:57 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Thu, 25 Jun 2015 20:57:42 +0000 (23:57 +0300)
commit1ecb5ce70762b979111ed4f0388d419f76c70867
treeceb423c622ed8474be4408ffafbdea149a07effe
parent6750c8b803f0f6d257a6bac36d695bc5fb049bf9
Issue #24496: Backport gzip examples to Python 2.

gzip.open() supports context management protocol in Python 2, so it's better to
use it in the examples section.

Patch by Jakub Kadlčík.
Doc/library/gzip.rst