def __new__(cls, *args, **kwargs):
        if hasattr(zipfile.ZipFile, '__exit__'):
            return zipfile.ZipFile(*args, **kwargs)
        return super(ContextualZipFile, cls).__new__(cls)
Construct a ZipFile or ContextualZipFile as appropriate
dataset/ETHPy150Open akamai-open/api-kickstart/examples/python/tools/ez_setup.py/ContextualZipFile.__new__