# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Handles backports of the standard library's `gzip.py`.

Python 2.6 has a `gzip.py` without support for the `with` statement.
Here, the version that ships with Python 2.7 is used instead.

Python 3.1 has a `gzip.py` that can not be wrapped by an
`io.TextIOWrapper`.  Here, the version that ships with Python 3.2 is
used instead.
"""



import sys
if sys.version_info[:2] == (3, 1):
    from ._gzip_32 import *
elif sys.version_info[:2] == (2, 6):
    from ._gzip_27 import *
else:
    from gzip import *
