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.
1 file changed