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 anzev/hedwig/build/pip/pip/_vendor/pkg_resources/__init__.py/ContextualZipFile.__new__